| | |
| | | <script setup> |
| | | import { getWebViewUrl } from "@/utils/index.js"; |
| | | import WebViewPlus from "@/components/WebViewPlus.vue"; |
| | | import { onHide, onShow } from "@dcloudio/uni-app"; |
| | | import { onHide, onShow, } from "@dcloudio/uni-app"; |
| | | import { useUserStore } from "@/store/index.js"; |
| | | // const viewUrl = getWebViewUrl("/defaultMap"); |
| | | |
| | | let envParam = ""; |
| | |
| | | envParam = "false"; |
| | | // #endif |
| | | |
| | | const userStore = useUserStore(); |
| | | const userParams = userStore?.userInfo ? JSON.stringify(userStore.userInfo) : '{}'; |
| | | |
| | | const updateKey = ref(0); |
| | | // const viewUrl = computed(() => { |
| | | // return `https://192.168.1.157:5176/mobile-web-view/#/webViewWrapper/defaultMap?params=${encodeURIComponent(userParams)}&isWeb=${envParam}&updateKey=${updateKey.value}`; |
| | | // }); |
| | | const viewUrl = computed(() => { |
| | | return getWebViewUrl("/defaultMap", { |
| | | isWeb: envParam, |