This commit is contained in:
clay
2021-12-27 23:05:09 +08:00
parent 6d8154dc9e
commit 8b5a97700f
15 changed files with 558 additions and 3 deletions

View File

@@ -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'