소스 검색

feat: 修改判空

linwenxin 1 년 전
부모
커밋
cd89f701da
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  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('设置成功')
       })