66b105cc45d8c3eec33954fffe0cd63a29774a13..03d20b477c2d5a4c6a2169d3df932d42b62ca6eb
2025-06-16 WXL
测试完成
03d20b 对比 | 目录
2025-06-16 WXL
测试完成
31cbe5 对比 | 目录
已修改2个文件
58 ■■■■ 文件已修改
src/router/index.js 56 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/login.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/router/index.js
@@ -52,7 +52,7 @@
    hidden: true
  },
  {
    path: '/wt',
    path: '/wxsf/wt',
    component: () => import('@/views/outsideChainwtnew'),
    hidden: true
  },
@@ -96,33 +96,33 @@
    component: () => import('@/views/error/401'),
    hidden: true
  },
  {
    path: '',
    component: Layout,
    redirect: 'index',
    children: [
      {
        path: 'index',
        component: () => import('@/views/index'),
        name: 'Index',
        meta: { title: '首页', icon: 'dashboard', affix: true }
      }
    ]
  },
  {
    path: '/user',
    component: Layout,
    hidden: true,
    redirect: 'noredirect',
    children: [
      {
        path: 'profile',
        component: () => import('@/views/system/user/profile/index'),
        name: 'Profile',
        meta: { title: '个人中心', icon: 'user' }
      }
    ]
  }
  // {
  //   path: '',
  //   component: Layout,
  //   redirect: 'index',
  //   children: [
  //     {
  //       path: 'index',
  //       component: () => import('@/views/index'),
  //       name: 'Index',
  //       meta: { title: '首页', icon: 'dashboard', affix: true }
  //     }
  //   ]
  // },
  // {
  //   path: '/user',
  //   component: Layout,
  //   hidden: true,
  //   redirect: 'noredirect',
  //   children: [
  //     {
  //       path: 'profile',
  //       component: () => import('@/views/system/user/profile/index'),
  //       name: 'Profile',
  //       meta: { title: '个人中心', icon: 'user' }
  //     }
  //   ]
  // }
]
// 动态路由,基于用户权限动态去加载
src/views/login.vue
@@ -168,7 +168,7 @@
            this.$store
              .dispatch("Login", this.loginForm)
              .then(() => {
                // this.$router.push({ path: this.redirect || "/" }).catch(() => {});
                this.$router.push({ path: this.redirect || "/" }).catch(() => {});
                // this.$router.push({ path:"/patient/patient" }).catch(() => {});
              })
              .catch(() => {