Commit a8f6d64c authored by zhangsan's avatar zhangsan

1

parent 5852b173
...@@ -18,10 +18,12 @@ declare module 'vue' { ...@@ -18,10 +18,12 @@ declare module 'vue' {
RouterView: typeof import('vue-router')['RouterView'] RouterView: typeof import('vue-router')['RouterView']
SignIn: typeof import('./components/signIn.vue')['default'] SignIn: typeof import('./components/signIn.vue')['default']
VanButton: typeof import('vant/es')['Button'] VanButton: typeof import('vant/es')['Button']
VanCell: typeof import('vant/es')['Cell']
VanEmpty: typeof import('vant/es')['Empty']
VanList: typeof import('vant/es')['List'] VanList: typeof import('vant/es')['List']
VanLoading: typeof import('vant/es')['Loading'] VanLoading: typeof import('vant/es')['Loading']
VanNavBar: typeof import('vant/es')['NavBar'] VanNavBar: typeof import('vant/es')['NavBar']
VarAppBar: typeof import('@varlet/ui')['AppBar'] VanTag: typeof import('vant/es')['Tag']
VarButton: typeof import('@varlet/ui')['Button'] VarButton: typeof import('@varlet/ui')['Button']
VarCountTo: typeof import('@varlet/ui')['CountTo'] VarCountTo: typeof import('@varlet/ui')['CountTo']
VarForm: typeof import('@varlet/ui')['Form'] VarForm: typeof import('@varlet/ui')['Form']
...@@ -34,6 +36,7 @@ declare module 'vue' { ...@@ -34,6 +36,7 @@ declare module 'vue' {
VarSteps: typeof import('@varlet/ui')['Steps'] VarSteps: typeof import('@varlet/ui')['Steps']
VarSwipe: typeof import('@varlet/ui')['Swipe'] VarSwipe: typeof import('@varlet/ui')['Swipe']
VarSwipeItem: typeof import('@varlet/ui')['SwipeItem'] VarSwipeItem: typeof import('@varlet/ui')['SwipeItem']
VarSwitch: typeof import('@varlet/ui')['Switch']
VarTab: typeof import('@varlet/ui')['Tab'] VarTab: typeof import('@varlet/ui')['Tab']
VarTabs: typeof import('@varlet/ui')['Tabs'] VarTabs: typeof import('@varlet/ui')['Tabs']
} }
......
...@@ -156,19 +156,19 @@ router.beforeEach(async (to, from, next) => { ...@@ -156,19 +156,19 @@ router.beforeEach(async (to, from, next) => {
// 检查版本更新 // 检查版本更新
if (process.env.NODE_ENV === "production") { if (process.env.NODE_ENV === "production") {
try { // try {
const { version } = await checkVersion(); // const { version } = await checkVersion();
if (version) { // if (version) {
const storedVersion = sessionStorage.getItem("app_version"); // const storedVersion = sessionStorage.getItem("app_version");
if (version !== storedVersion) { // if (version !== storedVersion) {
sessionStorage.setItem("app_version", version); // sessionStorage.setItem("app_version", version);
window.location.href = to.fullPath; // window.location.href = to.fullPath;
return; // return;
} // }
} // }
} catch (error) { // } catch (error) {
console.error("Version check failed:", error); // console.error("Version check failed:", error);
} // }
} }
// 获取用户信息 // 获取用户信息
......
...@@ -40,12 +40,12 @@ export default defineConfig({ ...@@ -40,12 +40,12 @@ export default defineConfig({
dts: 'src/components.d.ts', dts: 'src/components.d.ts',
dirs: ['src/components'] dirs: ['src/components']
}), }),
vitePluginBundleObfuscator({ // vitePluginBundleObfuscator({
enable: true, // enable: true,
log: true, // log: true,
autoExcludeNodeModules: true, // autoExcludeNodeModules: true,
threadPool: true, // threadPool: true,
}) // })
], ],
resolve: { resolve: {
alias: { alias: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment