|
@@ -54,9 +54,10 @@ export default {
|
|
|
watch: {
|
|
watch: {
|
|
|
tableTabs: {
|
|
tableTabs: {
|
|
|
handler(newName, oldName) {
|
|
handler(newName, oldName) {
|
|
|
- console.log('handler');
|
|
|
|
|
|
|
+ console.log('handler', newName, oldName);
|
|
|
let that = this;
|
|
let that = this;
|
|
|
that.editableTabs = newName;
|
|
that.editableTabs = newName;
|
|
|
|
|
+ that.editableTabsValue = that.editableTabs[that.editableTabs.length];
|
|
|
},
|
|
},
|
|
|
deep: true,
|
|
deep: true,
|
|
|
immediate: true
|
|
immediate: true
|
|
@@ -86,6 +87,9 @@ export default {
|
|
|
this.editableTabs.forEach((tab, index) => {
|
|
this.editableTabs.forEach((tab, index) => {
|
|
|
if (tab.clmurl == p) {
|
|
if (tab.clmurl == p) {
|
|
|
this.editableTabs.splice(index, 1);
|
|
this.editableTabs.splice(index, 1);
|
|
|
|
|
+ this.$router.push({
|
|
|
|
|
+ path: this.editableTabs[this.editableTabs.length - 1].clmurl
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|