File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ class Uploader {
164164 } as IAnalyticsData )
165165 }
166166 output . forEach ( ( item : ImgInfo ) => {
167- item . config = db . get ( `picBed.${ item . type } ` )
167+ item . config = JSON . parse ( JSON . stringify ( db . get ( `picBed.${ item . type } ` ) ) )
168168 } )
169169 return output . filter ( item => item . imgUrl )
170170 } else {
Original file line number Diff line number Diff line change @@ -402,6 +402,7 @@ function handleClose () {
402402}
403403
404404async function copy (item : ImgInfo ) {
405+ item .config = JSON .parse (JSON .stringify (item .config ))
405406 const copyLink = await ipcRenderer .invoke (PASTE_TEXT , item )
406407 const obj = {
407408 title: $T (' COPY_LINK_SUCCEED' ),
Original file line number Diff line number Diff line change 7676 label =" UBB"
7777 title =" [img]url[/img]"
7878 />
79- <!-- TODO 修改title为用户具体设置的格式-->
8079 <el-radio-button
81- : label =" $T('CUSTOM') "
82- :title =" $T('CUSTOM') "
80+ label =" Custom "
81+ :title =" customLink "
8382 />
8483 </el-radio-group >
8584 </div >
@@ -140,6 +139,7 @@ const showError = ref(false)
140139const pasteStyle = ref (' ' )
141140const picBed = ref <IPicBedType []>([])
142141const picBedName = ref (' ' )
142+ const customLink = ref (' ' )
143143onBeforeMount (() => {
144144 ipcRenderer .on (' uploadProgress' , (_event : IpcRendererEvent , _progress : number ) => {
145145 if (_progress !== - 1 ) {
@@ -242,6 +242,7 @@ function ipcSendFiles (files: FileList) {
242242
243243async function getPasteStyle () {
244244 pasteStyle .value = await getConfig (' settings.pasteStyle' ) || ' markdown'
245+ customLink .value = await getConfig (' settings.customLink' ) || ' $url'
245246}
246247
247248function handlePasteStyleChange (val : string | number | boolean ) {
You can’t perform that action at this time.
0 commit comments