fix:bug
All checks were successful
构建并部署前端到生产环境 / build-and-deploy (push) Successful in 1m39s

This commit is contained in:
sexygoat
2026-05-14 09:50:02 +08:00
parent ac1f4b1cec
commit 1ae5d945d1
2 changed files with 18 additions and 1 deletions

View File

@@ -66,6 +66,7 @@
<script setup>
import { ref, onMounted } from 'vue';
import { onHide, onShow, onUnload } from '@dcloudio/uni-app';
import { authApi, wechatApi } from '@/api/index.js';
import { useUserStore } from '@/store/index.js';
import { initWxConfig, wxScan, isInWechat } from '@/utils/wxsdk.js';
@@ -80,6 +81,10 @@
const showError = ref(false);
const wechatAppId = ref('');
const resetLoadingState = () => {
loading.value = false;
};
onMounted(async () => {
const token = uni.getStorageSync('token');
if (token) {
@@ -104,6 +109,18 @@
// #endif
});
onShow(() => {
resetLoadingState();
});
onHide(() => {
resetLoadingState();
});
onUnload(() => {
resetLoadingState();
});
const showPostBindReloginNotice = () => {
if (uni.getStorageSync(POST_BIND_RELOGIN_NOTICE_KEY) !== '1') {
return;

View File

@@ -1,3 +1,3 @@
export const BASE_URL = 'https://cmp-api.boss160.cn';
export const BASE_URL = 'https://cmp-api.xm-iot.cn';
export const APP_TYPE = 'official_account';