新UI样式修改
This commit is contained in:
parent
2e9dbf6545
commit
fbdc6aec1f
|
|
@ -11,7 +11,7 @@
|
|||
<div class="title"></div>
|
||||
<div class="home" @click="goHome"></div>
|
||||
<div class="fullScreen" @click="fullScreen"></div>
|
||||
<div class="back" @click="goHome">返回首页</div>
|
||||
<div class="back" @click="goHome">返回</div>
|
||||
|
||||
<div class="switch switch1" :class="{ 'switch-active': isMapMarkActive === 1 }" @click="changeMapMark(1)">
|
||||
<div class="icon"></div>
|
||||
|
|
|
|||
|
|
@ -26,25 +26,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
const handleUserInfo = async () => {
|
||||
try {
|
||||
if (!userStore.token) {
|
||||
await handleLogin()
|
||||
// 忘记写return导致后面的业务依然在运行。
|
||||
return
|
||||
}
|
||||
// 获取用户信息并持久化到浏览器
|
||||
await userStore.getUserInfo()
|
||||
// 在url没有hash url的时候路由跳转首页
|
||||
const hashUrl = window.location.hash.slice(1)
|
||||
if (hashUrl && hashUrl === '/') {
|
||||
//route.push('/svi/index')
|
||||
route.push('/big-screen')
|
||||
}
|
||||
} catch (error) {
|
||||
handleLogin()
|
||||
}
|
||||
}
|
||||
|
||||
const handleLogin = async () => {
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in New Issue