Commit 8bdd66ab authored by xuguangxing's avatar xuguangxing

feat: 升级组件库

parent 523630bb
......@@ -105,7 +105,9 @@ export default {
// }, 1000)
},
changeIds() {
const skus = this.data.ids ? this.data.ids.split(',') : [];
const ids = this.data && this.data.ids ? this.data.ids.trim() : '';
this.data.ids = ids;
const skus = ids ? ids.split(',') : [];
if (skus.length) {
if (skus.length > 15) {
this.$toast('最多填入15个商品');
......
......@@ -121,7 +121,9 @@ export default {
// }, 1000)
},
changeIds() {
const skus = this.data.ids ? this.data.ids.split(',') : [];
const ids = this.data && this.data.ids ? this.data.ids.trim() : '';
this.data.ids = ids;
const skus = ids ? ids.split(',') : [];
if (skus.length) {
if (skus.length > 15) {
this.$toast('最多填入15个商品');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment