(path = "/")
| 95 | const activeTab = ref<string>(""); |
| 96 | |
| 97 | const initDefaultTab = (path = "/") => { |
| 98 | const key = v4(); |
| 99 | tabList.value[currentTabKey] ||= []; |
| 100 | tabList.value[currentTabKey].push({ |
| 101 | key, |
| 102 | path, |
| 103 | name: path, |
| 104 | pushedTime: 0, |
| 105 | closable: false |
| 106 | }); |
| 107 | activeTab.value = key; |
| 108 | currentDisk.value = t("TXT_CODE_28124988"); |
| 109 | handleChangeTab(key); |
| 110 | }; |
| 111 | |
| 112 | // clear old tabs |
| 113 | onMounted(() => { |
no test coverage detected