This commit is contained in:
hezhengao 2024-04-19 10:36:36 +08:00
parent aeed28a7d7
commit d5d6dea007
3 changed files with 14 additions and 14 deletions

View File

@ -35,7 +35,7 @@ export default {
const first = matched[0]
if (!this.isDashboard(first)) {
matched = [{ path: '/index', meta: { title: '首页' }}].concat(matched)
matched = [{ path: '/abuwx/project', meta: { title: '项目管理' }}].concat(matched)
}
this.levelList = matched.filter(item => item.meta && item.meta.title && item.meta.breadcrumb !== false)

View File

@ -61,18 +61,18 @@ export const constantRoutes = [
component: () => import('@/views/error/401'),
hidden: true
},
{
path: '',
component: Layout,
redirect: 'index',
children: [
{
path: 'index',
component: () => import('@/views/abuwx/wxuser/index'),
name: 'Index',
}
]
},
// {
// path: '',
// component: Layout,
// redirect: 'index',
// children: [
// {
// path: 'index',
// component: () => import('@/views/abuwx/wxuser/index'),
// name: 'Index',
// }
// ]
// },
{
path: '/user',
component: Layout,

View File

@ -141,7 +141,7 @@ export default {
Cookies.remove('rememberMe');
}
this.$store.dispatch("Login", this.loginForm).then(() => {
this.$router.push({ path: this.redirect || "/" }).catch(()=>{});
this.$router.push({ path:'/abuwx/project' }).catch(()=>{});
}).catch(() => {
this.loading = false;
if (this.captchaEnabled) {