汪钰 %!s(int64=3) %!d(string=hai) anos
pai
achega
a54600a126
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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 {