mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-04-21 07:11:03 +00:00
fix register/unregister tabs to use $set/$delete (#545)
This commit is contained in:
parent
605ddbceed
commit
8dc43d3c2d
1 changed files with 2 additions and 2 deletions
|
|
@ -100,10 +100,10 @@
|
|||
};
|
||||
},
|
||||
registerTab(tabData) {
|
||||
this.tabList[tabData.id] = tabData;
|
||||
this.$set(this.tabList, tabData.id, tabData);
|
||||
},
|
||||
unregisterTab(tabData) {
|
||||
delete this.tabList[tabData.id];
|
||||
this.$delete(this.tabList, tabData.id);
|
||||
},
|
||||
updateTab(tabData) {
|
||||
this.registerTab(tabData);
|
||||
|
|
|
|||
Loading…
Reference in a new issue