合并代码

This commit is contained in:
szz
2025-08-08 09:41:19 +08:00
parent 18aac345f1
commit d57a9dec8f
7 changed files with 147 additions and 15 deletions

View File

@@ -53,6 +53,14 @@ const routes = [
title: '个人中心'
}
},
{
path: '/loading',
name: 'Loading',
component: () => import('@/views/Loading.vue'),
meta: {
title: '维护中'
}
},
{
path: '/mypoints-history',
name: 'MyPointsHistory',
@@ -235,6 +243,12 @@ const router = createRouter({
router.beforeEach(async (to, from, next) => {
NProgress.start()
// 系统维护模式:所有页面都跳转到维护页面
// if (to.name !== 'Loading') {
// next({ name: 'Loading' })
// return
// }
const userStore = useUserStore()
// 设置页面标题