1.0.0
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import {test} from '@/api/test'
|
||||
import About from './About'
|
||||
export default {
|
||||
name: 'HelloWorld',
|
||||
@@ -25,6 +26,9 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
switchLang () {
|
||||
test().then(res =>{
|
||||
console.log(res)
|
||||
})
|
||||
let lang = ''
|
||||
if (this.$i18n.locale === 'en') {
|
||||
lang = 'cn'
|
||||
|
||||
Reference in New Issue
Block a user