Commit a8f6d64c authored by zhangsan's avatar zhangsan

1

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