Commit ad3c1d76 authored by 周远喜's avatar 周远喜

多标签页支持

parent fb799d06
......@@ -170,7 +170,6 @@ export default {
let roots = arrs.filter(c => c.parent_Id == 0);
if (roots.length == 0) return;
//let root=roots[0];
console.table(roots);
for (let a = 0; a < roots.length; a++) {
let root = roots[a];
let tree0 = {
......
......@@ -63,7 +63,7 @@ export default {
console.log("openNames",openNames,path)
this.$store.commit("admin/menu/setOpenNames", openNames);
}
this.appRouteChange(to, from);
// this.appRouteChange(to, from);
}
},
methods: {
......@@ -104,7 +104,7 @@ export default {
this.toMenu(this.menus);
let headerName = "home";
this.$store.commit("admin/menu/setHeaderName", headerName);
this.$store.commit("admin/page/init", this.menus);
const filterMenuSider = getMenuSider(this.menus, headerName);
this.$store.commit("admin/menu/setSider", filterMenuSider);
this.$store.commit("admin/menu/setActivePath", to.path);
......
......@@ -2,7 +2,7 @@ import api from '@/plugins/request'
const u=(path)=>`${systemUrl}/Dictionary/${path}`
export default {
getChildren(id) {
return api.get(u("GetChildren"), { id })
return api.get(u("GetChildren"), { id:id })
},
getTree(){
return api.get(u('GetTree'))
......
......@@ -112,7 +112,7 @@
</template>
<script>
import Edit from './components/edit'
import api from '@/plugins/request'
import api from './api.js'
import Clipboard from 'clipboard'
const root = {
id: 0,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment