Skip to content

Commit

Permalink
fix 修复首次检测后端变化逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
xream committed Jan 20, 2024
1 parent d54783a commit 0df60b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sub-store-front-end",
"version": "2.14.96",
"version": "2.14.97",
"private": true,
"scripts": {
"dev": "vite --host",
Expand Down
4 changes: 2 additions & 2 deletions src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ router.beforeResolve(async (to, from) => {
// 路由跳转时查询环境,决定是否更新数据
if (globalStore !== null) {
const storeEnv = toRaw(globalStore.env);
// if (storeEnv?.backend && storeEnv?.version) {
if (storeEnv?.backend && storeEnv?.version) {
useEnvApi()
.getEnv()
.then(async res => {
Expand All @@ -257,7 +257,7 @@ router.beforeResolve(async (to, from) => {
}
}
});
// }
}
} else {
globalStore = useGlobalStore();
}
Expand Down

0 comments on commit 0df60b0

Please sign in to comment.