修复用户、角色、权限、添加或修改报错时再次添加后关联数据重复的问题

This commit is contained in:
郑杰
2018-12-26 17:31:28 +08:00
parent 68c60a48f1
commit ad34f06ad1
7 changed files with 10 additions and 1 deletions

View File

@@ -68,6 +68,7 @@ export default {
doSubmit() {
this.$refs['form'].validate((valid) => {
if (valid) {
this.form.permissions = []
const _this = this
this.permissionIds.forEach(function(data, index) {
const permission = { id: data }