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