🐛 Fix: fix an issue related with layout style

This commit is contained in:
萌萌哒赫萝 2023-08-12 07:08:46 -07:00
parent 6f40c0912e
commit 083917e34f

View File

@ -2133,7 +2133,7 @@ async function resetParam (force: boolean = false) {
previewedImage.value = ''
isShowFileInfo.value = false
lastChoosed.value = -1
layoutStyle.value = manageStore.config.settings.isShowList ? 'list' : 'grid'
layoutStyle.value = await getConfig('settings.isShowList') ? 'list' : 'grid'
if (!isAutoRefresh.value && !force && !paging.value) {
const cachedData = await searchExistFileList()
if (cachedData.length > 0) {