Browse Source

fix: 修改h5地址

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

25
src/views/mobilePage/index.vue

@ -4,34 +4,35 @@
</div>
</template>
<script>
import { getToken } from '@/utils/auth'
const isProDuction = process.env.NODE_ENV === "production"
import { getToken } from "@/utils/auth";
const isProDuction = process.env.NODE_ENV === "production";
// h5
const devSrc = 'http://172.16.34.83:8002/'
const devSrc = "http://172.16.34.83:8002/";
// 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 {
data() {
return {
h5Src
}
}
}
h5Src,
};
},
};
</script>
<style lang="scss">
.mobile-page{
.mobile-page {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
.iframe-page{
.iframe-page {
border: 1px solid #ccc;
border-radius: 10px;
width: 375px;
height: 720px;
}
}
</style>
</style>

Loading…
Cancel
Save