|
@@ -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) {
|