improve: 用户权限首页

This commit is contained in:
From-wh 2023-02-22 14:57:56 +08:00
parent 680f3f017f
commit ee62e1f9b8
3 changed files with 7 additions and 7 deletions

View File

@ -239,10 +239,10 @@ export default {
this.checkSocket();
} catch (e) {}
return this.$router.replace({ path: this.$routeProStr + '/home/' || this.$routeProStr + '/' });
return this.$router.replace({ path: res.data.menus[0].path || this.$routeProStr + '/' });
})
.catch((res) => {
msg()
msg();
let data = res === undefined ? {} : res;
this.$Message.error(data.msg || '登录失败');
this.login_captcha = res.data.login_captcha;

View File

@ -288,12 +288,12 @@ export default {
this.menusList = data.menus;
this.menusList.map((item, index) => {
if (item.title === '主页') {
item.checked = true;
item.disableCheckbox = true;
// item.checked = true;
// item.disableCheckbox = true;
if (item.children.length) {
item.children.map((v) => {
v.checked = true;
v.disableCheckbox = true;
// v.checked = true;
// v.disableCheckbox = true;
});
}
}

View File

@ -42,7 +42,7 @@ const meta = {
const pre = 'home_';
export default {
path: routePre + '/',
path: routePre + '/home',
name: 'home',
header: 'home',
redirect: {