From 0772a91c26dbe7b0b8698818cf50d079f44f799f Mon Sep 17 00:00:00 2001 From: Agent Date: Wed, 1 Apr 2026 14:36:48 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=86=E7=B1=BB=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E5=BF=85=E5=A1=AB=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/product/manage.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pages/product/manage.vue b/src/pages/product/manage.vue index 7a3f4d5..aff3cf8 100644 --- a/src/pages/product/manage.vue +++ b/src/pages/product/manage.vue @@ -58,7 +58,7 @@ - 分类 + *分类 {{ form.categoryId ? getCategoryName(form.categoryId) : '请选择分类' }} @@ -218,6 +218,10 @@ export default { return cat ? cat.name : '' }, async saveProduct() { + if (!this.form.categoryId) { + uni.showToast({ title: '请选择分类', icon: 'none' }) + return + } if (!this.form.name) { uni.showToast({ title: '请输入商品名称', icon: 'none' }) return