mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-09-05 23:47:43 +08:00
🐛 Fix(custom): fix webdav image preview issue
This commit is contained in:
@@ -18,6 +18,7 @@
|
|||||||
### 🐛 问题修复
|
### 🐛 问题修复
|
||||||
|
|
||||||
- 修复了云端页面部分文字没有跟随语言设置进行改变的问题
|
- 修复了云端页面部分文字没有跟随语言设置进行改变的问题
|
||||||
|
- 修复了云端webdav页面图片或文件无法预览的问题
|
||||||
- 修复了单图床重命名设置项在更新时,配置文件设置的值未正确更新的问题
|
- 修复了单图床重命名设置项在更新时,配置文件设置的值未正确更新的问题
|
||||||
- 修复了某些情况下重命名未生效的问题
|
- 修复了某些情况下重命名未生效的问题
|
||||||
- 修复了部分情况下,忽略软件更新选项未正确保存的问题
|
- 修复了部分情况下,忽略软件更新选项未正确保存的问题
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
### 🐛 Bug Fixes
|
### 🐛 Bug Fixes
|
||||||
|
|
||||||
- Fixed an issue where some text on the cloud page did not change according to the language settings.
|
- Fixed an issue where some text on the cloud page did not change according to the language settings.
|
||||||
|
- Fixed an issue where images or files on the cloud webdav page could not be previewed.
|
||||||
- Fixed an issue where the value set in the configuration file for the single image bed renaming setting was not correctly updated during updates.
|
- Fixed an issue where the value set in the configuration file for the single image bed renaming setting was not correctly updated during updates.
|
||||||
- Fixed an issue where renaming did not take effect in certain cases.
|
- Fixed an issue where renaming did not take effect in certain cases.
|
||||||
- Fixed an issue where the option to ignore software updates was not correctly saved in some cases.
|
- Fixed an issue where the option to ignore software updates was not correctly saved in some cases.
|
||||||
|
|||||||
@@ -194,9 +194,6 @@ try {
|
|||||||
mime: {
|
mime: {
|
||||||
lookup: mime.getType.bind(mime),
|
lookup: mime.getType.bind(mime),
|
||||||
},
|
},
|
||||||
buffer: {
|
|
||||||
from: Buffer.from,
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error)
|
console.error(error)
|
||||||
|
|||||||
@@ -61,8 +61,7 @@ async function getWebdavHeader(key: string) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
headers = {
|
headers = {
|
||||||
Authorization:
|
Authorization: 'Basic ' + btoa(`${props.config.username}:${props.config.password}`),
|
||||||
'Basic ' + window.node.buffer.from(`${props.config.username}:${props.config.password}`).toString('base64'),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return headers
|
return headers
|
||||||
|
|||||||
@@ -1820,7 +1820,7 @@ async function handleClickFile(item: any) {
|
|||||||
const options = {} as any
|
const options = {} as any
|
||||||
if (currentPicBedName.value === 'webdavplist') {
|
if (currentPicBedName.value === 'webdavplist') {
|
||||||
options.headers = {
|
options.headers = {
|
||||||
Authorization: `Basic ${window.node.buffer.from(`${manageStore.config.picBed[configMap.value.alias].username}:${manageStore.config.picBed[configMap.value.alias].password}`).toString('base64')}`,
|
Authorization: `Basic ${btoa(`${manageStore.config.picBed[configMap.value.alias].username}:${manageStore.config.picBed[configMap.value.alias].password}`)}`,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (item.isImage) {
|
if (item.isImage) {
|
||||||
|
|||||||
Vendored
-3
@@ -59,9 +59,6 @@ declare global {
|
|||||||
mime: {
|
mime: {
|
||||||
lookup: typeof mime.getType
|
lookup: typeof mime.getType
|
||||||
}
|
}
|
||||||
buffer: {
|
|
||||||
from: typeof Buffer.from
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user