关闭所有tab后跳转首页的逻辑放在了vuex

Former-commit-id: ed24741caff4a9096cc72bdd43924d2de0adbfe5 [formerly 689905bcaa27a2846fbf27465534bb41040f2645] [formerly ed24741caff4a9096cc72bdd43924d2de0adbfe5 [formerly 689905bcaa27a2846fbf27465534bb41040f2645] [formerly ed24741caff4a9096cc72bdd43924d2de0adbfe5 [formerly 689905bcaa27a2846fbf27465534bb41040f2645] [formerly 689905bcaa27a2846fbf27465534bb41040f2645 [formerly 98f743b5703589f33c7832a94555c86e06b24a0e [formerly 8117ab793338b3a2cc5146519b6127e28d799aec]]]]]
Former-commit-id: abb5f2627a2b46ee3bf883d4a22d5fcec8b4d25f
Former-commit-id: 8649a9243fbb57680e0e9ddc23557e9fe34e5b0c
Former-commit-id: 14529e62fa4b9242f94cc1a2157359ee735d49ab [formerly 4f888ac725bf24e91d6f59bd20533ca0ea8a6e55]
Former-commit-id: 0326b129d2438912324fb7fd1f544c6f85f0acaf
Former-commit-id: f8ab9ad9b97f2f990cc784471a299d1927226541
Former-commit-id: 57272a1b7fa4c4f35736f92e028d449eb03de5a1
Former-commit-id: 36bc2fd91f3d6ab9c6106defa53aea2078d271f4
Former-commit-id: eeb0cf216d748311591168e345ddf37be2144eda
This commit is contained in:
liyang
2018-07-13 11:34:02 +08:00
parent 971bc57e23
commit 648682d83f
2 changed files with 6 additions and 6 deletions

View File

@@ -19,7 +19,10 @@
</div>
</div>
<div class="d2-multiple-page-control-btn">
<el-dropdown split-button @click="handleControlBtnClick" @command="handleControlItemClick">
<el-dropdown
split-button
@click="handleControlBtnClick"
@command="handleControlItemClick">
<d2-icon name="times-circle"/>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item command="left">
@@ -132,10 +135,7 @@ export default {
* @description 关闭全部的 tag
*/
closeAllTag () {
this.$store.commit('d2adminTagCloseAll')
this.$router.push({
name: 'index'
})
this.$store.commit('d2adminTagCloseAll', this)
},
/**
* @description 关闭一个指定的 tag

View File

@@ -1 +1 @@
0c08503962c63595a288af254074e6dc5f7d22a6
4f701e92fa6fa2aa8e42fbc80cc090a70336e10a