mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-30 12:40:02 +08:00
✨ Feature: optimize url encode and filename encode
This commit is contained in:
@@ -1282,7 +1282,7 @@ const form = reactive<ISettingForm>({
|
||||
customMiniIcon: '',
|
||||
isHideDock: false,
|
||||
autoImport: false,
|
||||
encodeOutputURL: true,
|
||||
encodeOutputURL: false,
|
||||
isAutoListenClipboard: false,
|
||||
useShortUrl: false,
|
||||
deleteLocalFile: false
|
||||
@@ -1421,7 +1421,7 @@ async function initData () {
|
||||
form.useBuiltinClipboard = settings.useBuiltinClipboard === undefined ? true : settings.useBuiltinClipboard
|
||||
form.isAutoListenClipboard = settings.isAutoListenClipboard || false
|
||||
form.language = settings.language ?? 'zh-CN'
|
||||
form.encodeOutputURL = settings.encodeOutputURL === undefined ? true : settings.encodeOutputURL
|
||||
form.encodeOutputURL = settings.encodeOutputURL === undefined ? false : settings.encodeOutputURL
|
||||
form.deleteCloudFile = settings.deleteCloudFile || false
|
||||
form.autoImport = settings.autoImport || false
|
||||
form.isCustomMiniIcon = settings.isCustomMiniIcon || false
|
||||
|
||||
@@ -123,7 +123,7 @@ async function copyTheLink (item: ImgInfo) {
|
||||
|
||||
async function pasteTemplate (style: IPasteStyle, item: ImgInfo, customLink: string | undefined) {
|
||||
let url = item.url || item.imgUrl
|
||||
if ((await getConfig('settings.encodeOutputURL')) !== false) {
|
||||
if ((await getConfig('settings.encodeOutputURL')) === true) {
|
||||
url = handleUrlEncode(url)
|
||||
}
|
||||
const useShortUrl = await getConfig('settings.useShortUrl') || false
|
||||
|
||||
Reference in New Issue
Block a user