no message
Former-commit-id: b10907f05b3edf4f989f88aeb3dfd791e6193f68 Former-commit-id: 2c3cd9fbb8dd48e806059f68f7bf572d54f7ea5a Former-commit-id: 19fa12c189c6e7e91583a9ffdcaa5c01cfd60170
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<template>
|
||||
<div class="dd-mb">
|
||||
<el-radio-group v-model="lang" @change="handleChange">
|
||||
<el-radio-button label="CN">中文</el-radio-button>
|
||||
<el-radio-button label="EN">English</el-radio-button>
|
||||
</el-radio-group>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
lang: 'CN'
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleChange (val) {
|
||||
this.$i18n.locale = val
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user