File tree Expand file tree Collapse file tree 1 file changed +19
-4
lines changed Expand file tree Collapse file tree 1 file changed +19
-4
lines changed Original file line number Diff line number Diff line change 11<template >
2- <a-config-provider :locale =" zh_CN " >
2+ <a-config-provider :locale =" lang " >
33 <a-layout style =" min-height : 100% ;" >
44 <a-drawer
55 v-show =" clientWidth<512"
@@ -49,8 +49,9 @@ import SideBar from './SideBar'
4949import FooterLayout from ' ./FooterLayout'
5050import PageHeader from ' @/components/PageHeader/PageHeader'
5151import zh_CN from ' ant-design-vue/es/locale/zh_CN'
52+ import zh_TW from ' ant-design-vue/es/locale/zh_TW'
53+ import en_US from ' ant-design-vue/es/locale/en_US'
5254
53- // TODO: Change language for base layout.
5455export default {
5556 name: ' BaseLayout' ,
5657 data () {
@@ -72,7 +73,21 @@ export default {
7273 HeaderLayout,
7374 FooterLayout
7475 },
75- methods: {}
76+ methods: {},
77+ computed: {
78+ lang: {
79+ get () {
80+ switch (this .$language .current ) {
81+ case ' zh_CN' :
82+ return zh_CN
83+ case ' zh_TW' :
84+ return zh_TW
85+ default :
86+ return en_US
87+ }
88+ }
89+ }
90+ }
7691}
7792 </script >
7893<style lang="less">
143158}
144159
145160.ant-card-bordered {
146- border : unset ;
161+
147162}
148163
149164.header-notice-wrapper .ant-tabs-content {
You can’t perform that action at this time.
0 commit comments