Explorar o código

feat: 修改判空

linwenxin hai 1 ano
pai
achega
cd89f701da
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      src/views/setting/account.vue

+ 4 - 1
src/views/setting/account.vue

@@ -650,10 +650,13 @@ export default {
           })
         })
       })
-      this.adminUserId_jl = null
+      if(!pams.length){
+        return this.$errorMsg('至少选择一项强制仓')
+      }
       stockForceUserAdd({
         adminUserForceStocks:pams
       }).then(res=>{
+        this.adminUserId_jl = null
         this.resetForcedHold = false
         this.$successMsg('设置成功')
       })