diff --git a/Frontend/src/api/admin.ts b/Frontend/src/api/admin.ts index a656b805..aff1eb56 100644 --- a/Frontend/src/api/admin.ts +++ b/Frontend/src/api/admin.ts @@ -316,4 +316,25 @@ export const permissionApi = { } } +export const adminTagApi = { + listAllTags: () => { + return adminApi.get('/tag/list/all') + }, + listTagsByShopId: (shopId: number) => { + return adminApi.get('/tag/list/by-shop/' + shopId) + } +} + +export const adminArtistApi = { + listArtists: (shopId?: number) => { + return adminApi.get('/admin/user/list', { params: { shopId, type: 3 } }) + } +} + +export const adminCouponApi = { + listAllCoupons: () => { + return adminApi.get('/coupon/list/all') + } +} + export default adminApi \ No newline at end of file diff --git a/Frontend/src/views/admin/ProductsView.vue b/Frontend/src/views/admin/ProductsView.vue index 4ea3202b..beb2d255 100644 --- a/Frontend/src/views/admin/ProductsView.vue +++ b/Frontend/src/views/admin/ProductsView.vue @@ -100,52 +100,13 @@ :rows="3" /> - - -
- -
上传图片
-
-
- - 预览 - -
- - - - - - - - - - - - - - - +