Browse Source

fix: 修改h5地址

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

23
src/views/mobilePage/index.vue

@ -4,30 +4,31 @@
</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 {
width: 100%; width: 100%;
height: 100%; height: 100%;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
.iframe-page{ .iframe-page {
border: 1px solid #ccc; border: 1px solid #ccc;
border-radius: 10px; border-radius: 10px;
width: 375px; width: 375px;

Loading…
Cancel
Save