mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-04-27 22:49:39 +08:00
🍱 缓存
This commit is contained in:
@@ -33,6 +33,10 @@ const localUrl = ref<string>();
|
||||
|
||||
onMounted(async () => {
|
||||
if (!props.src) return;
|
||||
if (!props.src.startsWith("http")) {
|
||||
localUrl.value = props.src;
|
||||
return;
|
||||
}
|
||||
const link = props.ori ? props.src : appStore.getImageUrl(props.src);
|
||||
localUrl.value = await saveImgLocal(link);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user