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,
|
nextTick,
|
||||||
computed,
|
computed,
|
||||||
onMounted,
|
onMounted,
|
||||||
onBeforeUnmount
|
onBeforeUnmount,
|
||||||
|
watch
|
||||||
} from 'vue'
|
} from 'vue'
|
||||||
import { setCookie, getCookie, WriteCookie, clonAllCookie } from '@/tool/cookie'
|
import { setCookie, getCookie, WriteCookie, clonAllCookie } from '@/tool/cookie'
|
||||||
import { Https } from '@/tool/https'
|
import { Https } from '@/tool/https'
|
||||||
@@ -131,8 +132,26 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
}, 500)
|
}, 500)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
watch(
|
||||||
|
() => data.isSelectSuccessively,
|
||||||
|
val => {
|
||||||
|
let str = ''
|
||||||
|
if (val) {
|
||||||
|
str = 'CHINESE_SIMPLIFIED'
|
||||||
|
} else {
|
||||||
|
str = 'ENGLISH'
|
||||||
|
}
|
||||||
|
localStorage.setItem('loginLanguage', str)
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
updataIsMoblie()
|
updataIsMoblie()
|
||||||
|
const savedLang = localStorage.getItem('loginLanguage')
|
||||||
|
if (savedLang) {
|
||||||
|
data.isSelectSuccessively = savedLang === 'CHINESE_SIMPLIFIED'
|
||||||
|
}
|
||||||
window.addEventListener('resize', updataIsMoblie)
|
window.addEventListener('resize', updataIsMoblie)
|
||||||
})
|
})
|
||||||
onBeforeUnmount(() => {
|
onBeforeUnmount(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user