|
|
@ -78,8 +78,8 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
changePage (key) { |
|
|
|
changePage (key) { |
|
|
|
this.$router.push(key) |
|
|
|
|
|
|
|
this.activePage = key |
|
|
|
this.activePage = key |
|
|
|
|
|
|
|
this.$router.push(key) |
|
|
|
}, |
|
|
|
}, |
|
|
|
editPage (key, action) { |
|
|
|
editPage (key, action) { |
|
|
|
this[action](key) |
|
|
|
this[action](key) |
|
|
@ -92,8 +92,11 @@ export default { |
|
|
|
this.pageList = this.pageList.filter(item => item.fullPath !== key) |
|
|
|
this.pageList = this.pageList.filter(item => item.fullPath !== key) |
|
|
|
let index = this.linkList.indexOf(key) |
|
|
|
let index = this.linkList.indexOf(key) |
|
|
|
this.linkList = this.linkList.filter(item => item !== key) |
|
|
|
this.linkList = this.linkList.filter(item => item !== key) |
|
|
|
|
|
|
|
if (key == this.activePage) { |
|
|
|
index = index >= this.linkList.length ? this.linkList.length - 1 : index |
|
|
|
index = index >= this.linkList.length ? this.linkList.length - 1 : index |
|
|
|
this.activePage = this.linkList[index] |
|
|
|
this.activePage = this.linkList[index] |
|
|
|
|
|
|
|
this.$router.push(this.activePage) |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
onContextmenu (e) { |
|
|
|
onContextmenu (e) { |
|
|
|
const pagekey = this.getPageKey(e.target) |
|
|
|
const pagekey = this.getPageKey(e.target) |
|
|
|