mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-31 23:10:45 +00:00
improve: 用户权限首页
This commit is contained in:
parent
680f3f017f
commit
ee62e1f9b8
@ -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;
|
||||
|
||||
@ -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;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -42,7 +42,7 @@ const meta = {
|
||||
const pre = 'home_';
|
||||
|
||||
export default {
|
||||
path: routePre + '/',
|
||||
path: routePre + '/home',
|
||||
name: 'home',
|
||||
header: 'home',
|
||||
redirect: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user