style: 移动端样式
This commit is contained in:
@@ -79,7 +79,8 @@ import {
|
||||
nextTick,
|
||||
computed,
|
||||
onMounted,
|
||||
onBeforeUnmount
|
||||
onBeforeUnmount,
|
||||
watch
|
||||
} from 'vue'
|
||||
import { setCookie, getCookie, WriteCookie, clonAllCookie } from '@/tool/cookie'
|
||||
import { Https } from '@/tool/https'
|
||||
@@ -131,6 +132,20 @@ export default defineComponent({
|
||||
}
|
||||
}, 500)
|
||||
}
|
||||
|
||||
watch(
|
||||
() => data.isSelectSuccessively,
|
||||
val => {
|
||||
let str = ''
|
||||
if (val) {
|
||||
str = 'CHINESE_SIMPLIFIED'
|
||||
} else {
|
||||
str = 'ENGLISH'
|
||||
}
|
||||
localStorage.setItem('loginLanguage', str)
|
||||
}
|
||||
)
|
||||
|
||||
onMounted(() => {
|
||||
updataIsMoblie()
|
||||
const savedLang = localStorage.getItem('loginLanguage')
|
||||
|
||||
Reference in New Issue
Block a user