fix字体大小初始值问题
This commit is contained in:
parent
55ac9705d6
commit
a1af702292
@ -5,7 +5,6 @@
|
|||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import store from '@/store/index'
|
import store from '@/store/index'
|
||||||
import Cookies from 'js-cookie'
|
|
||||||
import { ElConfigProvider } from 'element-plus'
|
import { ElConfigProvider } from 'element-plus'
|
||||||
import zh from 'element-plus/lib/locale/lang/zh-cn' // 中文语言
|
import zh from 'element-plus/lib/locale/lang/zh-cn' // 中文语言
|
||||||
import en from 'element-plus/lib/locale/lang/en' // 英文语言
|
import en from 'element-plus/lib/locale/lang/en' // 英文语言
|
||||||
@ -21,10 +20,8 @@ const lang = computed(() => {
|
|||||||
return store.getters.language
|
return store.getters.language
|
||||||
})
|
})
|
||||||
const locale = ref(zh)
|
const locale = ref(zh)
|
||||||
const size = ref('small')
|
const size = ref('default')
|
||||||
if (Cookies.get('size')) {
|
size.value = store.getters.size
|
||||||
size.value = Cookies.get('size')
|
|
||||||
}
|
|
||||||
watch(
|
watch(
|
||||||
token,
|
token,
|
||||||
(val) => {
|
(val) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user