♻️ loading组件重构

This commit is contained in:
目棃
2024-12-16 11:13:30 +08:00
parent 1f167845a4
commit 24e3f11c4a
33 changed files with 482 additions and 428 deletions

View File

@@ -69,15 +69,15 @@ function getBoxData(item: TGApp.Plugins.Hutao.Base.Rate): TItemBoxData {
}
async function share(): Promise<void> {
showLoading.start("正在生成分享图");
const element = document.querySelector<HTMLElement>(".tuc-overlay-box");
if (element === null) {
showSnackbar.error("未获取到分享内容");
return;
}
const fileName = `真境剧诗_${new Date().getTime()}.png`;
await showLoading.start("正在生成分享图", fileName);
await generateShareImg(fileName, element, 1.2, true);
showLoading.end();
await showLoading.end();
}
</script>
<style lang="css" scoped>