|
@@ -327,6 +327,7 @@ export default {
|
|
|
// var a =this.ruleForm.function[i].join(',')
|
|
|
// this.ruleForm.functions.push(a)
|
|
|
// }
|
|
|
+ console.log(this.ruleForm)
|
|
|
this.btnLoading = true
|
|
|
if (this.ruleForm.id) {
|
|
|
this.$api.editRole(this.ruleForm).then(response => {
|
|
@@ -338,7 +339,7 @@ export default {
|
|
|
this.btnLoading = false
|
|
|
})
|
|
|
} else {
|
|
|
- console.log(this.ruleForm)
|
|
|
+
|
|
|
|
|
|
this.$api.addRole(this.ruleForm).then(response => {
|
|
|
this.$message.success('新增成功')
|