refactor: refactor mobile pages for the chat model updating

This commit is contained in:
RockYang
2023-09-04 18:15:56 +08:00
parent 32774d23c7
commit a49fb1940e
12 changed files with 564 additions and 172 deletions

View File

@@ -55,12 +55,22 @@ import {ElMessage} from "element-plus";
import {useRouter} from "vue-router";
import FooterBar from "@/components/FooterBar.vue";
import {isMobile} from "@/utils/libs";
import {checkSession} from "@/action/session";
const router = useRouter();
const title = ref('ChatGPT-PLUS 用户登录');
const username = ref(process.env.VUE_APP_USER);
const password = ref(process.env.VUE_APP_PASS);
checkSession().then(() => {
if (isMobile()) {
router.replace('mobile')
} else {
router.replace('chat')
}
}).catch(() => {
})
onMounted(() => {
document.addEventListener('keyup', (e) => {
if (e.key === 'Enter') {