Browse Source

fix: 修改h5地址

sy-water-data-board-ui
panyuyi 1 year ago
parent
commit
021af61f8a
  1. 19
      src/views/mobilePage/index.vue

19
src/views/mobilePage/index.vue

@ -4,21 +4,22 @@
</div> </div>
</template> </template>
<script> <script>
import { getToken } from '@/utils/auth' import { getToken } from "@/utils/auth";
const isProDuction = process.env.NODE_ENV === "production" const isProDuction = process.env.NODE_ENV === "production";
// h5 // h5
const devSrc = 'http://172.16.34.83:8002/' const devSrc = "http://172.16.34.83:8002/";
// prod // prod
const proSrc = 'http://shuili-h5.product.dev.com:30115/' // const proSrc = 'http://shuili-h5.product.dev.com:30115/'
const proSrc = "http://sy.datametatech.com:60022/";
const h5Src = `${isProDuction?proSrc:devSrc}?t=${getToken()}` const h5Src = `${isProDuction ? proSrc : devSrc}?t=${getToken()}`;
export default { export default {
data() { data() {
return { return {
h5Src h5Src,
} };
} },
} };
</script> </script>
<style lang="scss"> <style lang="scss">
.mobile-page { .mobile-page {

Loading…
Cancel
Save