vue2-client 1.15.31 → 1.15.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
<a-tabs
|
4
4
|
:tabBarGutter="tabBarGutter"
|
5
5
|
:activeKey="activeKey"
|
6
|
-
@change="tabPaneChange"
|
6
|
+
@change="(activeKey) => tabPaneChange(activeKey, false)"
|
7
7
|
:hideAdd="true"
|
8
8
|
:tabBarStyle="{ display: showTabBar ? 'block' : 'none' }"
|
9
9
|
>
|
@@ -68,7 +68,7 @@ export default {
|
|
68
68
|
},
|
69
69
|
mounted () {
|
70
70
|
this.activeKey = this.defaultActiveKey
|
71
|
-
this.tabPaneChange('initTabLoading')
|
71
|
+
this.tabPaneChange('initTabLoading', true)
|
72
72
|
},
|
73
73
|
methods: {
|
74
74
|
// 自定义函数中调用的方法 这个不能删
|
@@ -80,7 +80,7 @@ export default {
|
|
80
80
|
getRealKeyData,
|
81
81
|
getConfigByName,
|
82
82
|
getConfigByNameAsync,
|
83
|
-
tabPaneChange (newKey) {
|
83
|
+
tabPaneChange (newKey, initStatus = false) {
|
84
84
|
let result = {}
|
85
85
|
if (this.activeKey === newKey) {
|
86
86
|
return
|
@@ -161,6 +161,9 @@ export default {
|
|
161
161
|
} else {
|
162
162
|
this.activeKey = newKey
|
163
163
|
}
|
164
|
+
if (initStatus) {
|
165
|
+
this.activeKey = this.defaultActiveKey
|
166
|
+
}
|
164
167
|
},
|
165
168
|
initConfig () {
|
166
169
|
if (this.configName) {
|