Skip to content

Commit 1a7f89a

Browse files
committed
重构:基础设施 -> 文件管理 接口文件调整
1 parent fe2fa21 commit 1a7f89a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/views/infra/file/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
</template>
8888
<script setup lang="ts" name="Config">
8989
import { dateFormatter } from '@/utils/formatTime'
90-
import * as FileApi from '@/api/infra/fileList'
90+
import * as FileApi from '@/api/infra/file'
9191
import FileUploadForm from './form.vue'
9292
const message = useMessage() // 消息弹窗
9393
const { t } = useI18n() // 国际化
@@ -108,7 +108,7 @@ const queryFormRef = ref() // 搜索的表单
108108
const getList = async () => {
109109
loading.value = true
110110
try {
111-
const data = await FileApi.getFilePageApi(queryParams)
111+
const data = await FileApi.getFilePage(queryParams)
112112
list.value = data.list
113113
total.value = data.total
114114
} finally {
@@ -140,7 +140,7 @@ const handleDelete = async (id: number) => {
140140
// 删除的二次确认
141141
await message.delConfirm()
142142
// 发起删除
143-
await FileApi.deleteFileApi(id)
143+
await FileApi.deleteFile(id)
144144
message.success(t('common.delSuccess'))
145145
// 刷新列表
146146
await getList()

0 commit comments

Comments
 (0)