路由更改
This commit is contained in:
@@ -58,6 +58,7 @@ export default {
|
||||
} else if (this.password === '') {
|
||||
this.$message.warning('密码不能为空')
|
||||
} else {
|
||||
// this.$router.push('/home1')
|
||||
this.loginUser(this.username, this.password)
|
||||
this.getEditPermission()
|
||||
}
|
||||
@@ -119,7 +120,7 @@ export default {
|
||||
if (hasHomeMenu) {
|
||||
this.setMenu(JSON.stringify(menuList)).then(res => {
|
||||
this.loading = false
|
||||
this.$router.push('/home')
|
||||
this.$router.push('/home1')
|
||||
}, e => {
|
||||
this.loading = false
|
||||
this.$message.warning('未获取到菜单')
|
||||
@@ -160,7 +161,7 @@ export default {
|
||||
})
|
||||
if (hasHomeMenu) {
|
||||
this.setMenu(JSON.stringify(menuList)).then(res => {
|
||||
this.$router.push('/home')
|
||||
this.$router.push('/home1')
|
||||
}, e => {
|
||||
this.$message.warning('未获取到菜单')
|
||||
})
|
||||
@@ -203,7 +204,7 @@ export default {
|
||||
})
|
||||
if (hasHomeMenu) {
|
||||
this.setMenu(JSON.stringify(menuList)).then(res => {
|
||||
this.$router.push('/home')
|
||||
this.$router.push('/home1')
|
||||
}, e => {
|
||||
this.$message.warning('未获取到菜单')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user