diff --git a/Services/client/src/components/FileFormWrapper.vue b/Services/client/src/components/FileFormWrapper.vue index 1857c38..fcabcce 100644 --- a/Services/client/src/components/FileFormWrapper.vue +++ b/Services/client/src/components/FileFormWrapper.vue @@ -7,7 +7,7 @@ import UploadExistDialog from './UploadExistDialog.vue' const storageStore = useStorage() const { file, currentInfo } = storeToRefs(storageStore) -const { createFile, updateFile } = storageStore +const { createFile, updateFile, goto } = storageStore const fileFormState = ref(false) const fileFormPath = ref('') @@ -61,6 +61,10 @@ function triggerFileEdit( metadata: value.metadata, } fileNameLabel.value = file + + const arr = pathname.split('/') + arr[arr.length - 1] = '' + goto(arr.join('/')) } defineExpose({