Ver Fonte

修改角色

汪钰 há 3 anos atrás
pai
commit
a54600a126
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      src/views/system/role/components/role-edit.vue

+ 2 - 1
src/views/system/role/components/role-edit.vue

@@ -119,8 +119,9 @@
       visible(visible) {
         if (visible) {
           if (this.data != null) {
-            this.$util.assignObject(this.form, this.data);
+            // this.$util.assignObject(this.form, this.data);
             // this.form = this.data;
+            this.form = Object.assign(this.data);
             this.isUpdate = true;
             console.log(1111111);
           } else {