Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2026-02-22 17:42:15 +08:00
parent 6b0732c99b
commit 398ae6fb23
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -129,7 +129,7 @@ func HandleAssetsChangeEvent(assetAbsPath string) {
logging.LogErrorf("calc asset [%s] hash failed: %s", assetAbsPath, err)
} else {
p := strings.TrimPrefix(assetAbsPath, util.DataDir)
p = filepath.ToSlash(p)
p = strings.TrimPrefix(filepath.ToSlash(p), "/")
cache.SetAssetHash(hash, p)
}
}