diff --git a/src/components/FormMixin/index.js b/src/components/FormMixin/index.js
index cb43e98877977485a7ee537778533d9b57e9bd19..ec20166fb3688043843852578f4033257b8bcec6 100644
--- a/src/components/FormMixin/index.js
+++ b/src/components/FormMixin/index.js
@@ -27,7 +27,7 @@ export default {
}
},
setData(data, type) {
- this.form = data;
+ this.form = { ...data };
this.type = type;
},
},
diff --git a/src/pages/system/view/role/RoleManagement.vue b/src/pages/system/view/role/RoleManagement.vue
index 3c1ab42c8e636c4a1469db74634b30b1bf9254cc..012b63a8ae352baac8d5db29d1fe03876f1446e5 100644
--- a/src/pages/system/view/role/RoleManagement.vue
+++ b/src/pages/system/view/role/RoleManagement.vue
@@ -3,9 +3,9 @@
-
-
-
+
+
+
view(row, 2)">查看
@@ -36,7 +36,7 @@ export default {
view(data, type) {
this.$refs['table']?.show({ type });
this.$nextTick(() => {
- this.$refs['form'].setData(data, type);
+ this.$refs['form'].setData({ ...data }, type);
});
},
},
diff --git a/src/pages/system/view/role/form.vue b/src/pages/system/view/role/form.vue
index 61d916596ecc44b8e5c50edc0af83ae5d42b7732..a3a94f8ada3c59c7832fcbe05eb466814be0f6a4 100644
--- a/src/pages/system/view/role/form.vue
+++ b/src/pages/system/view/role/form.vue
@@ -1,5 +1,5 @@
-
+
@@ -25,30 +25,23 @@