style: 移动端样式

This commit is contained in:
2025-11-27 13:38:30 +08:00
parent b800ca6b74
commit 925541ab99
2 changed files with 94 additions and 20 deletions

View File

@@ -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')