feat: 添加设置菜单 优化移动端菜单显示

This commit is contained in:
alger
2024-12-15 14:35:18 +08:00
parent 100268448a
commit 3b1470f28f
5 changed files with 30 additions and 6 deletions

View File

@@ -23,6 +23,7 @@
import { onMounted, ref } from 'vue';
import config from '@/../package.json';
import { isMobile } from '@/utils';
const showModal = ref(false);
const isElectron = ref((window as any).electron !== undefined);
@@ -37,7 +38,7 @@ const closeModal = () => {
onMounted(() => {
// 如果是 electron 环境,不显示安装提示
if (isElectron.value) {
if (isElectron.value || isMobile.value) {
return;
}