修改缓存路径设置判断错误

Signed-off-by: CoderHank <coderhankzhang@gmail.com>
This commit is contained in:
CoderHank 2024-06-27 11:01:50 +08:00
parent e8cd4cf95e
commit 8d349af5f5
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ export class FileCache {
if (this.isInited) {
return
}
if (this.context && path.startsWith(this.context.cacheDir) === false) {
if (this.context && path.startsWith(this.context.cacheDir) === true) {
this.path = path
} else {
FileCache.CACHE_FOLDER = path