feat: 添加动画速度调整功能 优化页面自适应效果

This commit is contained in:
alger
2024-12-08 21:50:58 +08:00
parent f1030d3a78
commit 17795e5da2
10 changed files with 149 additions and 77 deletions
+6 -2
View File
@@ -7,7 +7,8 @@
</div>
<div class="app-info">
<h2 class="app-name">Alger Music</h2>
<p class="app-desc">在桌面安装应用获得更好的体验</p>
<p class="app-desc mb-2">在桌面安装应用获得更好的体验</p>
<n-checkbox v-model:checked="noPrompt">不再提示</n-checkbox>
</div>
</div>
<div class="modal-actions">
@@ -23,10 +24,13 @@ import { onMounted, ref } from 'vue';
const showModal = ref(false);
const isElectron = ref((window as any).electron !== undefined);
const noPrompt = ref(false);
const closeModal = () => {
showModal.value = false;
localStorage.setItem('installPromptDismissed', 'true');
if (noPrompt.value) {
localStorage.setItem('installPromptDismissed', 'true');
}
};
const handleInstall = async () => {