MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / initDefaultTab

Function initDefaultTab

frontend/src/hooks/useFileManager.ts:97–110  ·  view source on GitHub ↗
(path = "/")

Source from the content-addressed store, hash-verified

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(() => {

Callers 2

handleRemoveTabFunction · 0.85
getFileListFunction · 0.85

Calls 2

handleChangeTabFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected