Skip to content

Commit 9d05e3c

Browse files
committed
✨ 重构代码
1 parent 692159e commit 9d05e3c

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

src/pages/file.vue

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@
275275
<Link></Link>
276276

277277
<!-- 上传框 -->
278-
<ZUpload @close="loadFileAndConfig"></ZUpload>
278+
<ZUpload @close="loadFile"></ZUpload>
279279

280280
<!-- 音频播放器 -->
281281
<audio-player></audio-player>
@@ -499,19 +499,12 @@ let { checkSelectable, selectRowsChange, selectRow, selectRows, selectStatistics
499499
500500
// 初始化时,加载文件列表
501501
onBeforeMount(() => {
502-
loadFileAndConfig();
502+
loadFile();
503503
})
504504
505-
const loadFileAndConfig = () => {
506-
if (route.params.storageKey) {
507-
loadFile();
508-
loadFileConfig();
509-
}
510-
}
511-
512505
// 切换存储源或路径时,重新加载文件列表
513506
watch(() => [route.params.storageKey, route.params.fullpath], () => {
514-
loadFileAndConfig();
507+
loadFile();
515508
})
516509
517510
const {

0 commit comments

Comments
 (0)