fix: 修复刷新页面菜单、页脚闪动的问题

This commit is contained in:
zhuoqinglian
2026-03-17 16:01:10 +08:00
parent 818ac1eefb
commit 20ac6f3f96
13 changed files with 143 additions and 87 deletions
+5
View File
@@ -60,6 +60,11 @@ export default {
isCDNEnabled: process.env.VUE_APP_USE_CDN === 'true'
};
},
created() {
// 挂载 store 状态
this.$store.commit('setUserInfo', JSON.parse(localStorage.getItem('userInfo') || '{}'));
this.$store.commit('setPubConfig', JSON.parse(localStorage.getItem('pubConfig') || '{}'));
},
mounted() {
// 检测是否为移动设备且VUE_APP_H5_URL不为空,如果两个条件都满足则跳转到H5页面
if (this.isMobileDevice() && process.env.VUE_APP_H5_URL) {