File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 3333 :is =" tabs[0].component"
3434 :resource =" resource"
3535 :loading =" loading"
36- :tab =" tabs[0].name " />
36+ :tab =" tabName( tabs[0]) " />
3737 </keep-alive >
3838 <a-tabs
3939 v-else
4040 style =" width : 100% ; margin-top : -12px "
4141 :animated =" false"
42- :activeKey =" activeTab || tabs[0].name "
42+ :activeKey =" activeTab || tabName( tabs[0]) "
4343 @change =" onTabChange" >
44- <template v-for =" tab in tabs " :key =" tab . name " >
44+ <template v-for =" tab in tabs " :key =" tabName ( tab ) " >
4545 <a-tab-pane
46- :key =" tab.name "
46+ :key =" tabName( tab) "
4747 :tab =" $t('label.' + tabName(tab))"
4848 v-if =" showTab(tab)" >
4949 <keep-alive >
@@ -183,12 +183,12 @@ export default {
183183 return
184184 }
185185 if (! this .historyTab || ! this .$route .meta .tabs || this .$route .meta .tabs .length === 0 ) {
186- this .activeTab = this .tabs [0 ]. name
186+ this .activeTab = this .tabName ( this . tabs [0 ])
187187 return
188188 }
189- const tabIdx = this .$route .meta .tabs .findIndex (tab => tab . name === this .historyTab )
189+ const tabIdx = this .$route .meta .tabs .findIndex (tab => this . tabName (tab) === this .historyTab )
190190 if (tabIdx === - 1 ) {
191- this .activeTab = this .tabs [0 ]. name
191+ this .activeTab = this .tabName ( this . tabs [0 ])
192192 } else {
193193 this .activeTab = this .historyTab
194194 }
You can’t perform that action at this time.
0 commit comments