no message
This commit is contained in:
parent
27cc707c25
commit
15e3abc98d
@ -51,7 +51,13 @@
|
||||
if(item.meta.type=='iframe'){
|
||||
item.path = `/i/${item.name}`
|
||||
}
|
||||
if(item.children&&item.children.length > 0&&!item.component){
|
||||
|
||||
if(item.children && item.children.length > 0){
|
||||
|
||||
if (item.component) {
|
||||
// this.menu.push(item)
|
||||
}
|
||||
|
||||
this.filterMenu(item.children)
|
||||
}else{
|
||||
this.menu.push(item)
|
||||
@ -82,8 +88,9 @@
|
||||
filterRouter.forEach(item => {
|
||||
res.push({
|
||||
name: item.name,
|
||||
children: item.children || [],
|
||||
type: item.meta.type,
|
||||
path: item.meta.type=="link"?item.path.slice(1):item.path,
|
||||
path: item.meta.type == "link" ? item.path.slice(1) : item.path,
|
||||
icon: item.meta.icon,
|
||||
title: item.meta.title,
|
||||
breadcrumb: item.meta.breadcrumb.map(v => v.meta.title).join(' - ')
|
||||
@ -107,10 +114,16 @@
|
||||
document.body.removeChild(a)
|
||||
}, 10);
|
||||
}else{
|
||||
this.$router.push({path: item.path})
|
||||
this.getchildren(item);
|
||||
}
|
||||
this.$emit('success', true)
|
||||
},
|
||||
getchildren(o){
|
||||
if (o && o.children && o.children.length > 0) {
|
||||
return this.getchildren(o.children[0]);
|
||||
}
|
||||
this.$router.push({path:o.path})
|
||||
},
|
||||
historyClick(text){
|
||||
this.input = text
|
||||
this.inputChange(text)
|
||||
|
@ -165,9 +165,9 @@
|
||||
<Side-m v-if="ismobile"></Side-m>
|
||||
<div class="aminui-body el-container">
|
||||
<Topbar>
|
||||
<Tags ref="tags" v-if="!ismobile && layoutTags"></Tags>
|
||||
<userbar></userbar>
|
||||
</Topbar>
|
||||
<Tags ref="tags" v-if="!ismobile && layoutTags"></Tags>
|
||||
<div class="adminui-main" id="adminui-main">
|
||||
<router-view v-show="$route.meta.type!='iframe'" v-slot="{ Component }">
|
||||
<keep-alive :include="this.$store.state.keepAlive.keepLiveRoute">
|
||||
@ -287,7 +287,6 @@
|
||||
},
|
||||
|
||||
getchildren(o){
|
||||
console.log(o)
|
||||
if (o && o.children && o.children.length > 0) {
|
||||
return this.getchildren(o.children[0]);
|
||||
}
|
||||
|
@ -77,7 +77,6 @@
|
||||
return {
|
||||
customizing: false,
|
||||
allComps: allComps,
|
||||
selectLayout: [],
|
||||
defaultGrid: [],
|
||||
widgets: [],
|
||||
}
|
||||
@ -238,17 +237,6 @@
|
||||
|
||||
.widgets-wrapper .sortable-ghost {opacity: 0.5;}
|
||||
|
||||
.selectLayout {width: 100%;display: flex;}
|
||||
.selectLayout-item {width:60px;height:60px;border: 2px solid var(--el-border-color-light);padding:5px;cursor: pointer;margin-right: 15px;}
|
||||
.selectLayout-item span {display: block;background: var(--el-border-color-light);height:46px;}
|
||||
.selectLayout-item.item02 span {height:30px;}
|
||||
.selectLayout-item.item02 .el-col:nth-child(1) span {height:14px;margin-bottom: 2px;}
|
||||
.selectLayout-item.item03 span {height:14px;margin-bottom: 2px;}
|
||||
.selectLayout-item:hover {border-color: var(--el-color-primary);}
|
||||
.selectLayout-item.active {border-color: var(--el-color-primary);}
|
||||
.selectLayout-item.active span {background: var(--el-color-primary);}
|
||||
|
||||
|
||||
.dark {
|
||||
.widgets-aside {background: #2b2b2b;}
|
||||
.customize-overlay {background: rgba(43,43,43,0.9);}
|
||||
|
Loading…
Reference in New Issue
Block a user