no message

Former-commit-id: e8bd7cc50b71e33351940ca4f86976efabde73ee [formerly 8c6e4b28d15eacb09c7f8eecef5089625a60fc69] [formerly e8bd7cc50b71e33351940ca4f86976efabde73ee [formerly 8c6e4b28d15eacb09c7f8eecef5089625a60fc69] [formerly e8bd7cc50b71e33351940ca4f86976efabde73ee [formerly 8c6e4b28d15eacb09c7f8eecef5089625a60fc69] [formerly 8c6e4b28d15eacb09c7f8eecef5089625a60fc69 [formerly 9a33a5f25529a894c50f3e6f5fbb1a9035689793 [formerly 9d3c3ac74a16d014dfad32381b60eba4a2c43625]]]]]
Former-commit-id: da23a8aa024f578750bdeed60d14eecf58c1bd36
Former-commit-id: a39ee1f8b67deaae09a1eb9c7d1e6d9eb2a7e1df
Former-commit-id: c93a0c7bcf82275ee182ca504110529fc3ba141f [formerly c8aefa9d4dbc65e6a0dd013314c14c98bf3c455c]
Former-commit-id: 599ab8dcb8e8f2f56cb7885779c9ce93a1e2e90e
Former-commit-id: 110e17a3dbabe71c2aa2585bd942b15edb5c9c94
Former-commit-id: a46a9428cb2f865b2b4521186509e590b8edff89
Former-commit-id: d5d75597de6e5b093ccfe01929146a79d9c4e484
Former-commit-id: 2f0531a412f1905651d45b9282bc3dc3531376d8
This commit is contained in:
liyang
2018-07-01 15:51:18 +08:00
parent 0d44d58485
commit 6906f7d5e7

View File

@@ -107,7 +107,17 @@ export default {
* @param {state} state vuex state
*/
d2adminTagCloseLeft (state) {
let currentIndex = 0
state.pageOpenedList.forEach((page, index) => {
if (page.name === state.pageCurrent) {
currentIndex = index
}
})
if (currentIndex > 0) {
state.pageOpenedList.splice(1, currentIndex - 1)
}
// 更新设置到数据库
this.commit('d2adminVuex2Db', 'pageOpenedList')
},
/**
* @class pageOpenedList
@@ -115,7 +125,15 @@ export default {
* @param {state} state vuex state
*/
d2adminTagCloseRight (state) {
let currentIndex = 0
state.pageOpenedList.forEach((page, index) => {
if (page.name === state.pageCurrent) {
currentIndex = index
}
})
state.pageOpenedList.splice(currentIndex + 1)
// 更新设置到数据库
this.commit('d2adminVuex2Db', 'pageOpenedList')
},
/**
* @class pageOpenedList