添加配置浏览器缓存所有静态资源
This commit is contained in:
@@ -55,21 +55,7 @@ export async function init() {
|
||||
document.title = setting.title;
|
||||
}
|
||||
|
||||
if (!setting.background) {
|
||||
removeLoading();
|
||||
return;
|
||||
}
|
||||
|
||||
const img = new Image();
|
||||
img.src = cvtR2Url(setting.background);
|
||||
img.onload = () => {
|
||||
removeLoading();
|
||||
};
|
||||
|
||||
img.onerror = () => {
|
||||
console.warn('背景图片加载失败:', img.src);
|
||||
removeLoading();
|
||||
};
|
||||
removeLoading();
|
||||
}
|
||||
|
||||
function removeLoading() {
|
||||
|
||||
Reference in New Issue
Block a user