no message
Former-commit-id: 07c9ad367d783208789e834c572365af586eaabe Former-commit-id: 54230eb22ac1974f7343117f3d9a02c8e3bdf310 Former-commit-id: 7d8a2c68e87856bf833aa87525eb117888d5bc6b
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
<template>
|
||||
<Container>
|
||||
<div>
|
||||
<el-radio-group v-model="lang">
|
||||
<el-radio-group v-model="lang" @change="handleChange">
|
||||
<el-radio-button label="CN">中文</el-radio-button>
|
||||
<el-radio-button label="EN">英语</el-radio-button>
|
||||
<el-radio-button label="EN">English</el-radio-button>
|
||||
</el-radio-group>
|
||||
</div>
|
||||
{{$t('message.hello')}}
|
||||
<p>{{$t('message.hello')}}</p>
|
||||
</Container>
|
||||
</template>
|
||||
|
||||
@@ -14,7 +14,12 @@
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
lang: ''
|
||||
lang: 'CN'
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleChange (val) {
|
||||
this.$i18n.locale = val
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user