🐛 修复 BUG

This commit is contained in:
Wisp X
2022-01-20 08:04:10 +08:00
parent 95fd2298e7
commit ef4d214a9e

View File

@@ -199,7 +199,7 @@
let response = data.result;
if (response.status) {
// 如果开启了自动清除缩略图功能
if ({{ Auth::check() && Auth::user()->configs->get(\App\Enums\UserConfigKey::IsAutoClearPreview) }}) {
if ({{ (Auth::check() && Auth::user()->configs->get(\App\Enums\UserConfigKey::IsAutoClearPreview)) ? 1 : 0 }}) {
delete queue[data.$preview.data('id')];
data.$preview.remove();
} else {