no message
Former-commit-id: 07c9ad367d783208789e834c572365af586eaabe Former-commit-id: 54230eb22ac1974f7343117f3d9a02c8e3bdf310 Former-commit-id: 7d8a2c68e87856bf833aa87525eb117888d5bc6b
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
export const message = {
|
export const message = {
|
||||||
language: '语言',
|
|
||||||
hello: '你好,世界'
|
hello: '你好,世界'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
export const message = {
|
export const message = {
|
||||||
language: 'language',
|
hello: 'Hello World'
|
||||||
hello: 'hello world'
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<Container>
|
<Container>
|
||||||
<div>
|
<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="CN">中文</el-radio-button>
|
||||||
<el-radio-button label="EN">英语</el-radio-button>
|
<el-radio-button label="EN">English</el-radio-button>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</div>
|
</div>
|
||||||
{{$t('message.hello')}}
|
<p>{{$t('message.hello')}}</p>
|
||||||
</Container>
|
</Container>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -14,7 +14,12 @@
|
|||||||
export default {
|
export default {
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
lang: ''
|
lang: 'CN'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
handleChange (val) {
|
||||||
|
this.$i18n.locale = val
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user