From 255b84b1cce39b96a7b3f21019801a8f86911b9c Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Tue, 16 Aug 2022 15:30:28 +0800
Subject: [PATCH] 解决查看用户详情时报错
---
src/views/system/user.vue | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/views/system/user.vue b/src/views/system/user.vue
index b126312..f846661 100644
--- a/src/views/system/user.vue
+++ b/src/views/system/user.vue
@@ -1033,10 +1033,11 @@
beforeOpen(done, type) {
const column = this.findObject(this.option.group, "farmId");
if(type == "add"&& column.dicData == ""){
+ this.form = {}
this.initData(website.tenantId)
}
- this.form = {}
if (["edit", "view"].includes(type)) {
+ console.log(this.form.id)
getUser(this.form.id).then(res => {
this.form = res.data.data;
if(this.form.hasOwnProperty("deptId")){
--
Gitblit v1.9.3