chenrui 3 anni fa
parent
commit
e776607216
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      src/views/power/user/userModal.vue

+ 2 - 0
src/views/power/user/userModal.vue

@@ -172,6 +172,8 @@ export default {
           params.roleNames = _this.form.roleNames.join(',')
           if (_this.nowData && _this.nowData.id) {
             params.id = _this.nowData.id
+          } else {
+            delete params.id
           }
           _this.spinning = true
           saveUserPower(params).then(res => {