添加商品时,没有多规格,提示

This commit is contained in:
cc_zbp 2023-06-01 17:55:07 +08:00
parent 68ba0e8ac9
commit 389ec632ee

View File

@ -669,6 +669,7 @@
// //
selectSpecification() { selectSpecification() {
attrList(this.merId, { page: 1, limit: 10000 }).then(res => { attrList(this.merId, { page: 1, limit: 10000 }).then(res => {
if (res.data.list.length < 1) return Toast('暂无规格可选');
this.specificationClassification = res.data.list; this.specificationClassification = res.data.list;
this.classified['attr'] = this.specificationClassification; this.classified['attr'] = this.specificationClassification;
this.specificationClassification.forEach(item => { this.specificationClassification.forEach(item => {