Refactor code structure for improved readability and maintainability

This commit is contained in:
2026-01-11 15:51:22 +07:00
parent 6f8a8de9be
commit 309606565b
46 changed files with 28649 additions and 28522 deletions

View File

@@ -1,19 +1,19 @@
<script setup lang="ts">
const { t } = useI18n()
const { canInstall, isInstalled, install } = usePWAInstall()
const installing = ref(false)
const { t } = useI18n();
const { canInstall, isInstalled, install } = usePWAInstall();
const installing = ref(false);
async function handleInstall() {
installing.value = true
installing.value = true;
try {
const success = await install()
const success = await install();
if (success) {
// 可以显示成功提示
console.log('PWA 安装成功')
console.log("PWA 安装成功");
}
}
finally {
installing.value = false
installing.value = false;
}
}
</script>