File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 87
87
</template >
88
88
<script setup lang="ts" name="Config">
89
89
import { dateFormatter } from ' @/utils/formatTime'
90
- import * as FileApi from ' @/api/infra/fileList '
90
+ import * as FileApi from ' @/api/infra/file '
91
91
import FileUploadForm from ' ./form.vue'
92
92
const message = useMessage () // 消息弹窗
93
93
const { t } = useI18n () // 国际化
@@ -108,7 +108,7 @@ const queryFormRef = ref() // 搜索的表单
108
108
const getList = async () => {
109
109
loading .value = true
110
110
try {
111
- const data = await FileApi .getFilePageApi (queryParams )
111
+ const data = await FileApi .getFilePage (queryParams )
112
112
list .value = data .list
113
113
total .value = data .total
114
114
} finally {
@@ -140,7 +140,7 @@ const handleDelete = async (id: number) => {
140
140
// 删除的二次确认
141
141
await message .delConfirm ()
142
142
// 发起删除
143
- await FileApi .deleteFileApi (id )
143
+ await FileApi .deleteFile (id )
144
144
message .success (t (' common.delSuccess' ))
145
145
// 刷新列表
146
146
await getList ()
You can’t perform that action at this time.
0 commit comments