소스 검색

修改角色

汪钰 3 년 전
부모
커밋
a54600a126
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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 {