|
@ -32,16 +32,26 @@ |
|
|
import { onMounted, ref } from 'vue' |
|
|
import { onMounted, ref } from 'vue' |
|
|
import { useRouter } from 'vue-router' |
|
|
import { useRouter } from 'vue-router' |
|
|
import { setHeight } from '@/utils/setHeight' |
|
|
import { setHeight } from '@/utils/setHeight' |
|
|
|
|
|
|
|
|
|
|
|
import { useDataStore } from "@/store/dataList.js"; |
|
|
|
|
|
const { getQueryVariable, setActiveTabIndex } = useDataStore(); |
|
|
const router = useRouter() |
|
|
const router = useRouter() |
|
|
const pageRef = ref(null) |
|
|
const pageRef = ref(null) |
|
|
|
|
|
|
|
|
onMounted(() => { |
|
|
onMounted(() => { |
|
|
setHeight(pageRef.value) |
|
|
|
|
|
|
|
|
// setHeight(pageRef.value) |
|
|
|
|
|
const isPhone = |
|
|
|
|
|
/phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/i.test( |
|
|
|
|
|
navigator.userAgent |
|
|
|
|
|
); |
|
|
|
|
|
!isPhone && |
|
|
|
|
|
localStorage.setItem( |
|
|
|
|
|
"localToken", |
|
|
|
|
|
decodeURIComponent(String(getQueryVariable("token"))) |
|
|
|
|
|
); |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
const goToDBQBmodel = () => { |
|
|
const goToDBQBmodel = () => { |
|
|
router.push('/DBQBmodel') |
|
|
|
|
|
|
|
|
router.push("/DBQBmodel") |
|
|
} |
|
|
} |
|
|
const goToEmotionsmodel = () => { |
|
|
const goToEmotionsmodel = () => { |
|
|
router.push('/Emotionsmodel') |
|
|
router.push('/Emotionsmodel') |
|
|