This commit is contained in:
zmj 2024-05-16 18:02:23 +08:00
parent 31cce22ba3
commit bd39369d24
2 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,8 @@
<u-icon name="trash" style='margin-right: 8rpx;'></u-icon> <u-icon name="trash" style='margin-right: 8rpx;'></u-icon>
</view> </view>
<view class="" style="display: flex;align-items: center;"> <view class="" style="display: flex;align-items: center;">
<u-switch v-model="item.is_use" type='primaryy' activeColor="#38BE41" size="19"></u-switch> <u-switch :disabled='attrValue.length==1' v-model="item.is_use" type='primaryy'
activeColor="#38BE41" size="19"></u-switch>
<text style="margin-left: 8rpx;color: #777777;">启用</text> <text style="margin-left: 8rpx;color: #777777;">启用</text>
</view> </view>
</view> </view>

View File

@ -880,7 +880,6 @@
that.getProductTitle() that.getProductTitle()
}) })
.catch(rej => { .catch(rej => {
this.$set(this, 'num', -1); this.$set(this, 'num', -1);
Toast(`${rej}, 删除失败`); Toast(`${rej}, 删除失败`);
}) })