@@ -319,8 +319,11 @@ const defaultSetting = {
319319 draggable: true ,
320320 show_guide: true ,
321321 avatar: ' ' ,
322+ avatar_url: ' ' ,
322323 float_icon: ' ' ,
324+ float_icon_url: ' ' ,
323325 user_avatar: ' ' ,
326+ user_avatar_url: ' ' ,
324327 disclaimer: false ,
325328 disclaimer_value: ' 「以上内容均由 AI 生成,仅供参考和借鉴」' ,
326329 custom_theme: {
@@ -344,8 +347,11 @@ const xpackForm = ref<any>({
344347 draggable: false ,
345348 show_guide: false ,
346349 avatar: ' ' ,
350+ avatar_url: ' ' ,
347351 float_icon: ' ' ,
352+ float_icon_url: ' ' ,
348353 user_avatar: ' ' ,
354+ user_avatar_url: ' ' ,
349355 disclaimer: false ,
350356 disclaimer_value: ' 「以上内容均由 AI 生成,仅供参考和借鉴」' ,
351357 custom_theme: {
@@ -360,7 +366,8 @@ const xpackForm = ref<any>({
360366
361367const imgUrl = ref <any >({
362368 avatar: ' ' ,
363- float_icon: ' '
369+ float_icon: ' ' ,
370+ user_avatar: ' '
364371})
365372
366373const dialogVisible = ref <boolean >(false )
@@ -395,6 +402,7 @@ const onChange = (file: any, fileList: UploadFiles, attr: string) => {
395402 } else {
396403 xpackForm .value [attr ] = file .raw
397404 imgUrl .value [attr ] = URL .createObjectURL (file .raw )
405+ xpackForm .value [` ${attr }_url ` ] = ' '
398406 }
399407}
400408
@@ -409,6 +417,9 @@ const open = (data: any, content: any) => {
409417 imgUrl .value .user_avatar = data .user_avatar
410418 xpackForm .value .disclaimer = data .disclaimer
411419 xpackForm .value .disclaimer_value = data .disclaimer_value
420+ xpackForm .value .avatar_url = data .avatar
421+ xpackForm .value .user_avatar_url = data .user_avatar
422+ xpackForm .value .float_icon_url = data .float_icon
412423 xpackForm .value .custom_theme = {
413424 theme_color: data .custom_theme ?.theme_color || ' ' ,
414425 header_font_color: data .custom_theme ?.header_font_color || ' #1f2329'
0 commit comments