Merge branch 'StableVersion' of ssh://18.167.251.121:10002/aidlab/aida_front into StableVersion
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,8 +132,26 @@ 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')
|
||||
if (savedLang) {
|
||||
data.isSelectSuccessively = savedLang === 'CHINESE_SIMPLIFIED'
|
||||
}
|
||||
window.addEventListener('resize', updataIsMoblie)
|
||||
})
|
||||
onBeforeUnmount(() => {
|
||||
@@ -301,7 +320,7 @@ export default defineComponent({
|
||||
display: flex;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
column-gap: 0.9rem;
|
||||
column-gap: 0.9rem;
|
||||
.homeRecommend_logo {
|
||||
&.aid {
|
||||
width: 8rem;
|
||||
|
||||
Reference in New Issue
Block a user