|
@@ -33,9 +33,11 @@ const checkVersion = async () => {
|
|
}
|
|
}
|
|
localStorage.setItem("sd_web_version", JSON.stringify({ version: version }));
|
|
localStorage.setItem("sd_web_version", JSON.stringify({ version: version }));
|
|
};
|
|
};
|
|
|
|
+
|
|
|
|
+const isRefresh = import.meta.env.VITE_REFRESH;
|
|
router.beforeEach((to, from, next) => {
|
|
router.beforeEach((to, from, next) => {
|
|
|
|
|
|
- if (from.path !== "/") {
|
|
+ if (from.path !== "/" && isRefresh === "true") {
|
|
checkVersion();
|
|
checkVersion();
|
|
}
|
|
}
|
|
NProgress.start();
|
|
NProgress.start();
|