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

多标签页支持

parent fb799d06
...@@ -170,7 +170,6 @@ export default { ...@@ -170,7 +170,6 @@ export default {
let roots = arrs.filter(c => c.parent_Id == 0); let roots = arrs.filter(c => c.parent_Id == 0);
if (roots.length == 0) return; if (roots.length == 0) return;
//let root=roots[0]; //let root=roots[0];
console.table(roots);
for (let a = 0; a < roots.length; a++) { for (let a = 0; a < roots.length; a++) {
let root = roots[a]; let root = roots[a];
let tree0 = { let tree0 = {
......
...@@ -63,7 +63,7 @@ export default { ...@@ -63,7 +63,7 @@ export default {
console.log("openNames",openNames,path) console.log("openNames",openNames,path)
this.$store.commit("admin/menu/setOpenNames", openNames); this.$store.commit("admin/menu/setOpenNames", openNames);
} }
this.appRouteChange(to, from); // this.appRouteChange(to, from);
} }
}, },
methods: { methods: {
...@@ -104,7 +104,7 @@ export default { ...@@ -104,7 +104,7 @@ export default {
this.toMenu(this.menus); this.toMenu(this.menus);
let headerName = "home"; let headerName = "home";
this.$store.commit("admin/menu/setHeaderName", headerName); this.$store.commit("admin/menu/setHeaderName", headerName);
this.$store.commit("admin/page/init", this.menus);
const filterMenuSider = getMenuSider(this.menus, headerName); const filterMenuSider = getMenuSider(this.menus, headerName);
this.$store.commit("admin/menu/setSider", filterMenuSider); this.$store.commit("admin/menu/setSider", filterMenuSider);
this.$store.commit("admin/menu/setActivePath", to.path); this.$store.commit("admin/menu/setActivePath", to.path);
......
...@@ -2,7 +2,7 @@ import api from '@/plugins/request' ...@@ -2,7 +2,7 @@ import api from '@/plugins/request'
const u=(path)=>`${systemUrl}/Dictionary/${path}` const u=(path)=>`${systemUrl}/Dictionary/${path}`
export default { export default {
getChildren(id) { getChildren(id) {
return api.get(u("GetChildren"), { id }) return api.get(u("GetChildren"), { id:id })
}, },
getTree(){ getTree(){
return api.get(u('GetTree')) return api.get(u('GetTree'))
......
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
</template> </template>
<script> <script>
import Edit from './components/edit' import Edit from './components/edit'
import api from '@/plugins/request' import api from './api.js'
import Clipboard from 'clipboard' import Clipboard from 'clipboard'
const root = { const root = {
id: 0, 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