File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ export const deleteSpu = (id: number) => {
101
101
}
102
102
103
103
// 导出商品 Spu Excel
104
- export const exportSpu = async ( params ) => {
104
+ export const exportSpu = async ( params : any ) => {
105
105
return await request . download ( { url : '/product/spu/export' , params } )
106
106
}
107
107
Original file line number Diff line number Diff line change @@ -411,7 +411,7 @@ const handleExport = async () => {
411
411
await message.exportConfirm()
412
412
// 发起导出
413
413
exportLoading.value = true
414
- const data = await ProductSpuApi.exportSpu(queryParams)
414
+ const data = await ProductSpuApi.exportSpu(queryParams.value )
415
415
download.excel(data, '商品列表.xls')
416
416
} catch {
417
417
} finally {
@@ -434,7 +434,7 @@ onActivated(() => {
434
434
onMounted(async () => {
435
435
// 解析路由的 categoryId
436
436
if (route.query.categoryId) {
437
- queryParams.value.categoryId = Number( route.query.categoryId)
437
+ queryParams.value.categoryId = route.query.categoryId
438
438
}
439
439
// 获得商品信息
440
440
await getTabsCount()
You can’t perform that action at this time.
0 commit comments