fix(App.vue): 国际化语言切换刷新页面时Element Plus语言未能切换问题修复

This commit is contained in:
郝先瑞 committed 2022-02-27 12:52:33 +08:00
1 parent 8d370436d8
commit dcdbf124d8
1 file changed
+3
+3
View File
@@ -25,6 +25,9 @@ watch(language, (value) => {
} else { } else {
locale.value = zhCn locale.value = zhCn
} }
}, {
// 初始化立即执行,
immediate: true
}) })
</script> </script>
<style> <style>