浏览代码

bug 修复

lilei 3 年之前
父节点
当前提交
08403fe718
共有 1 个文件被更改,包括 3 次插入1 次删除
  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) {