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] const first = matched[0]
if (!this.isDashboard(first)) { 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) 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'), component: () => import('@/views/error/401'),
hidden: true hidden: true
}, },
{ // {
path: '', // path: '',
component: Layout, // component: Layout,
redirect: 'index', // redirect: 'index',
children: [ // children: [
{ // {
path: 'index', // path: 'index',
component: () => import('@/views/abuwx/wxuser/index'), // component: () => import('@/views/abuwx/wxuser/index'),
name: 'Index', // name: 'Index',
} // }
] // ]
}, // },
{ {
path: '/user', path: '/user',
component: Layout, component: Layout,

View File

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