diff --git a/build/vite/optimize.ts b/build/vite/optimize.ts index 416ea02e..1a7a1b2f 100644 --- a/build/vite/optimize.ts +++ b/build/vite/optimize.ts @@ -64,6 +64,7 @@ const include = [ 'element-plus/es/components/dropdown-menu/style/index', 'element-plus/es/components/dropdown-item/style/index', 'element-plus/es/components/skeleton/style/index', + 'element-plus/es/components/skeleton/style/css', 'element-plus/es/components/backtop/style/css', 'element-plus/es/components/menu/style/css', @@ -76,7 +77,21 @@ const include = [ 'element-plus/es/components/badge/style/css', 'element-plus/es/components/breadcrumb/style/css', 'element-plus/es/components/breadcrumb-item/style/css', - 'element-plus/es/components/image/style/css' + 'element-plus/es/components/image/style/css', + 'element-plus/es/components/tag/style/css', + 'element-plus/es/components/dialog/style/css', + 'element-plus/es/components/form/style/css', + 'element-plus/es/components/form-item/style/css', + 'element-plus/es/components/card/style/css', + 'element-plus/es/components/tooltip/style/css', + 'element-plus/es/components/radio-group/style/css', + 'element-plus/es/components/radio/style/css', + 'element-plus/es/components/input-number/style/css', + 'element-plus/es/components/tree-select/style/css', + 'element-plus/es/components/drawer/style/css', + 'element-plus/es/components/image-viewer/style/css', + 'element-plus/es/components/upload/style/css', + 'element-plus/es/components/switch/style/css' ] const exclude = ['@iconify/json'] diff --git a/src/api/mall/product/category.ts b/src/api/mall/product/category.ts index 7ae81285..8158fc0f 100644 --- a/src/api/mall/product/category.ts +++ b/src/api/mall/product/category.ts @@ -17,17 +17,17 @@ export interface CategoryVO { */ name: string /** - * 分类图片 + * 移动端分类图 */ picUrl: string + /** + * PC 端分类图 + */ + bigPicUrl?: string /** * 分类排序 */ - sort?: number - /** - * 分类描述 - */ - description?: string + sort: number /** * 开启状态 */ diff --git a/src/views/mall/product/category/CategoryForm.vue b/src/views/mall/product/category/CategoryForm.vue index 19bce872..dfe81333 100644 --- a/src/views/mall/product/category/CategoryForm.vue +++ b/src/views/mall/product/category/CategoryForm.vue @@ -4,27 +4,30 @@ ref="formRef" :model="formData" :rules="formRules" - label-width="80px" + label-width="120px" v-loading="formLoading" > - + + + + - + -
推荐 200x100 图片分辨率
-
推荐 100x100 图片分辨率
+
推荐 180x180 图片分辨率
+
+ + +
推荐 468x340 图片分辨率
@@ -40,9 +43,6 @@ - - -