Browse Source

bug 修复

lilei 3 years ago
parent
commit
08403fe718
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/views/power/user/userModal.vue

+ 3 - 1
src/views/power/user/userModal.vue

@@ -170,7 +170,9 @@ export default {
         if (valid) {
           const params = JSON.parse(JSON.stringify(_this.form))
           params.roleNames = _this.form.roleNames.join(',')
-          params.id = _this.nowData && _this.nowData.id ? _this.nowData.id : null
+          if (_this.nowData && _this.nowData.id) {
+            params.id = _this.nowData.id
+          }
           _this.spinning = true
           saveUserPower(params).then(res => {
             if (res.status == 200) {