(item: string, type: number)
| 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; |
nothing calls this directly
no test coverage detected