auto jump to mobile page when use mobile device access the page

This commit is contained in:
RockYang
2024-10-04 11:25:01 +08:00
parent 88e7c39066
commit e2960b2607
8 changed files with 27 additions and 26 deletions

View File

@@ -61,15 +61,10 @@ import {useRouter} from "vue-router";
import FooterBar from "@/components/FooterBar.vue";
import {httpGet} from "@/utils/http";
import {ElMessage} from "element-plus";
import {isMobile} from "@/utils/libs";
import {checkSession, getLicenseInfo, getSystemInfo} from "@/store/cache";
const router = useRouter()
if (isMobile()) {
router.push("/mobile")
}
const title = ref("")
const logo = ref("")
const slogan = ref("")