mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-09-18 17:26:38 +08:00
22 lines
388 B
Vue
22 lines
388 B
Vue
<template>
|
|
<div>{{ title }}</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
import {onMounted, ref} from "vue"
|
|
import {isMobile} from "@/utils/libs";
|
|
import {useRouter} from "vue-router"; // 导入useRouter函数
|
|
|
|
const title = ref("Loading page...");
|
|
const router = useRouter();
|
|
onMounted(() => {
|
|
if (isMobile()) {
|
|
router.push("mobile");
|
|
} else {
|
|
router.push("chat");
|
|
}
|
|
})
|
|
|
|
|
|
</script>
|