Skip to content

Commit b43e150

Browse files
authored
fix: [Workflow Tool] Upload icon save failed (#4993)
1 parent 355fb3d commit b43e150

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ui/src/views/tool/WorkflowFormDialog.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,12 @@ watch(dialogVisible, (bool) => {
151151
FolderFormRef.value.resetFields()
152152
}
153153
})
154-
154+
const details = ref<any>()
155155
const open = (data?: any) => {
156156
if (data) {
157157
// 编辑当前id
158158
editId.value = data.id
159+
details.value = data
159160
workflowForm.value.name = data.name
160161
workflowForm.value.desc = data.desc
161162
workflowForm.value.icon = data.icon
@@ -166,7 +167,7 @@ const open = (data?: any) => {
166167
167168
const EditAvatarDialogRef = ref()
168169
function openEditAvatar() {
169-
EditAvatarDialogRef.value.open(workflowForm.value)
170+
EditAvatarDialogRef.value.open(details.value)
170171
}
171172
172173
function refreshTool(data: any) {

0 commit comments

Comments
 (0)