🐛 Fix: fix isShowThumbnail not work

This commit is contained in:
萌萌哒赫萝 2023-02-16 09:27:40 +08:00
parent bc6210015c
commit 351fd9c99f
4 changed files with 4 additions and 16 deletions

4
.gitignore vendored
View File

@ -20,8 +20,8 @@ test.js
.env
scripts/*.yml
scripts/generateYmlFile.js
.yarnrc
#Electron-builder output
/dist_electron
/docs
cloc.exe
cloc.exe

12
.yarnrc
View File

@ -1,12 +0,0 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
registry "https://registry.npm.taobao.org"
sass_binary_site "https://npm.taobao.org/mirrors/node-sass/"
phantomjs_cdnurl "http://cnpmjs.org/downloads"
electron_mirror "https://npm.taobao.org/mirrors/electron/"
sqlite3_binary_host_mirror "https://foxgis.oss-cn-shanghai.aliyuncs.com/"
profiler_binary_host_mirror "https://npm.taobao.org/mirrors/node-inspector/"
chromedriver_cdnurl "https://cdn.npm.taobao.org/dist/chromedriver"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 151 KiB

View File

@ -1175,7 +1175,7 @@ const itemsPerPage = computed(() => manageStore.config.picBed[configMap.alias].i
const calculateAllFileSize = computed(() => formatFileSize(currentPageFilesInfo.reduce((total: any, item: { fileSize: any }) => total + item.fileSize, 0)) || '0')
const isShowImageIcon = computed(() => manageStore.config.settings.isShowImageIcon ?? false)
const isShowThumbnail = computed(() => manageStore.config.settings.isShowThumbnail ?? false)
const isAutoRefresh = computed(() => manageStore.config.settings.isAutoRefresh ?? false)
const isIgnoreCase = computed(() => manageStore.config.settings.isIgnoreCase ?? false)
@ -2333,7 +2333,7 @@ const columns: Column<any>[] = [
reference: () => (
!item.isDir
? <ElImage
src={isShowImageIcon.value ? item.isImage ? item.url : require(`./assets/icons/${getFileIconPath(item.fileName ?? '')}`) : require(`./assets/icons/${getFileIconPath(item.fileName ?? '')}`)}
src={isShowThumbnail.value ? item.isImage ? item.url : require(`./assets/icons/${getFileIconPath(item.fileName ?? '')}`) : require(`./assets/icons/${getFileIconPath(item.fileName ?? '')}`)}
fit="contain"
style={{ width: '20px', height: '20px' }}
>