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

Function rowClickTable

frontend/src/hooks/useFileManager.ts:837–864  ·  view source on GitHub ↗
(item: string, type: number)

Source from the content-addressed store, hash-verified

835 };
836
837 const rowClickTable = async (item: string, type: number) => {
838 if (type === 1) return;
839 try {
840 spinning.value = true;
841 const target = currentPath.value + item;
842
843 breadcrumbs.push({
844 path: target,
845 name: item,
846 disabled: false
847 });
848 operationForm.value.name = "";
849 operationForm.value.current = 1;
850 await getFileList(true);
851
852 const thisTab = currentTabs.value.find((e) => e.key === activeTab.value);
853 if (thisTab) {
854 thisTab.path = target;
855 thisTab.name = item;
856 return;
857 }
858 } catch (error: any) {
859 breadcrumbs.splice(breadcrumbs.length - 1, 1);
860 return reportErrorMsg(error.message);
861 } finally {
862 spinning.value = false;
863 }
864 };
865
866 const getFileLink = async (fileName: string, frontDir?: string) => {
867 frontDir = frontDir || currentPath.value;

Callers

nothing calls this directly

Calls 3

reportErrorMsgFunction · 0.90
getFileListFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected