Commit 1641919e authored by youjie's avatar youjie

no message

parent 5c5d1c41
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
option-value="langLocale" option-value="langLocale"
option-label="langName" option-label="langName"
style="width:180px" style="width:180px"
@update:model-value="getLanguage"
> >
<template v-slot:selected> <template v-slot:selected>
{{$t("lanuage")}} {{$t("lanuage")}}
...@@ -128,6 +129,11 @@ export default defineComponent({ ...@@ -128,6 +129,11 @@ export default defineComponent({
}, },
goback(){ goback(){
window.history.go(-1) window.history.go(-1)
},
// 切换语言
getLanguage(val) {
locale.value = val.langLocale;
localStorage.setItem('lanuage', val.langLocale)
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment