From 1afc9e8af8704bb54e1410331057d906f901506f Mon Sep 17 00:00:00 2001 From: cl Date: Thu, 20 May 2021 15:52:29 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=B1=9E=E6=80=A7=E8=A7=84=E6=A0=BC?= =?UTF-8?q?=E6=96=B0=E5=A2=9Ebug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mall4v/src/views/modules/prod/spec-add-or-update.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/mall4v/src/views/modules/prod/spec-add-or-update.vue b/mall4v/src/views/modules/prod/spec-add-or-update.vue index 334551b..57ec96b 100644 --- a/mall4v/src/views/modules/prod/spec-add-or-update.vue +++ b/mall4v/src/views/modules/prod/spec-add-or-update.vue @@ -52,7 +52,7 @@ export default { dataList: [{ propId: 0, propName: '', prodPropValues: [{ valueId: 0 }] }], dataRule: { propName: [ - { required: true, message: '菜单名称不能为空', trigger: 'blur' } + { required: true, message: '属性名称不能为空', trigger: 'blur' } ] }, page: { @@ -87,6 +87,11 @@ export default { } this.dataList[0].prodPropValues = temp } + if (this.dataList[0].prodPropValues.length < 1) { + this.dataList[0].prodPropValues = [{ valueId: 0 }] + this.$message.error('规格项不能为空') + return + } this.$http({ url: this.$http.adornUrl(`/prod/spec`), method: this.dataList[0].propId ? 'put' : 'post', @@ -126,4 +131,4 @@ export default { } } } - \ No newline at end of file + From af8621d6f2174405ffbdf48c378855655ea331bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B9=BF=E5=B7=9E=E5=B8=82=E8=93=9D=E6=B5=B7=E5=88=9B?= =?UTF-8?q?=E6=96=B0=E7=A7=91=E6=8A=80=E6=9C=89=E9=99=90=E5=85=AC=E5=8F=B8?= Date: Sat, 22 May 2021 16:55:19 +0800 Subject: [PATCH 2/2] update README.md. --- README.md | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/README.md b/README.md index 1347659..c7410ad 100644 --- a/README.md +++ b/README.md @@ -40,11 +40,10 @@ uni-app:https://gitee.com/gz-yami/mall4uni 后台: 账号:admin/123456 -小程序:1. 扫描二维码 +小程序:扫描二维码 ![小程序](https://gitee.com/gz-yami/mall4j/raw/master/screenshot/miniQrcode.jpg) -​ 2. 搜索小程序 **亚米商城** ## 技术选型 @@ -124,8 +123,4 @@ https://gitee.com/gz-yami/mall4j/wikis ## 特别鸣谢 - wxjava:https://github.com/Wechat-Group/WxJava -- mybaitsplus:https://github.com/baomidou/mybatis-plus -- hutool:https://github.com/looly/hutool -- vue:https://github.com/vuejs/vue -- element:https://github.com/ElemeFE/element