路由更改

This commit is contained in:
宋伟佳
2021-05-26 15:17:59 +08:00
parent 197a52df12
commit b0adad42ce
5 changed files with 13 additions and 13 deletions
+4 -3
View File
@@ -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('未获取到菜单')
})