fix(web): bump thumbV to v5 to avoid stale thumbnail cache

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
yuanzonghao
2026-06-07 13:28:45 +08:00
parent 53868471c6
commit b57e36571d
+1 -1
View File
@@ -868,7 +868,7 @@ function StyleModal({
const [parsing, setParsing] = useState(false); const [parsing, setParsing] = useState(false);
const [parseError, setParseError] = useState<string | null>(null); const [parseError, setParseError] = useState<string | null>(null);
const fileInputRef = useRef<HTMLInputElement>(null); const fileInputRef = useRef<HTMLInputElement>(null);
const thumbV = "v1"; const thumbV = "v5";
const STYLE_THUMB: Record<string, string> = { const STYLE_THUMB: Record<string, string> = {
"自动": `/home/styles/auto.webp?${thumbV}`, "自动": `/home/styles/auto.webp?${thumbV}`,
"自定义风格": `/home/styles/custom.webp?${thumbV}`, "自定义风格": `/home/styles/custom.webp?${thumbV}`,