From 8a06d7e3594c4df4e5b129fc40bffc8d78a468e2 Mon Sep 17 00:00:00 2001 From: xingyu4j Date: Wed, 14 Dec 2022 13:47:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20fileconfig=20=E5=88=9D=E5=A7=8B=E5=8C=96?= =?UTF-8?q?=E8=A1=A8=E5=96=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/infra/fileConfig/index.vue | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/yudao-ui-admin-vue3/src/views/infra/fileConfig/index.vue b/yudao-ui-admin-vue3/src/views/infra/fileConfig/index.vue index 8312a2f96..de3d450ed 100644 --- a/yudao-ui-admin-vue3/src/views/infra/fileConfig/index.vue +++ b/yudao-ui-admin-vue3/src/views/infra/fileConfig/index.vue @@ -197,7 +197,7 @@ const dialogVisible = ref(false) // 是否显示弹出层 const dialogTitle = ref('edit') // 弹出层标题 const formRef = ref() // 表单 Ref const detailData = ref() // 详情 Ref -let form = ref({ +const form = ref({ id: 0, name: '', storage: 0, @@ -230,6 +230,28 @@ const setDialogTile = (type: string) => { const handleCreate = (formEl: FormInstance | undefined) => { setDialogTile('create') formEl?.resetFields() + form.value = { + id: 0, + name: '', + storage: 0, + master: false, + visible: false, + config: { + basePath: '', + host: '', + port: 0, + username: '', + password: '', + mode: '', + endpoint: '', + bucket: '', + accessKey: '', + accessSecret: '', + domain: '' + }, + remark: '', + createTime: new Date() + } } // 修改操作