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 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 +