You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.0 KiB
54 lines
1.0 KiB
<template>
|
|
<div class="mod-home">
|
|
<h3>CCLQMS</h3>
|
|
<ul>
|
|
<li><h3>{{ $t('main.home.welcome', { userName }) }}</h3></li>
|
|
</ul>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import {searchSysLanguagePack} from "../../api/sysLanguage";
|
|
|
|
|
|
export default {
|
|
methods: {
|
|
languageRefresh(){
|
|
console.log(this.$t('main.home.welcomeLog'))
|
|
},
|
|
languagePack() {
|
|
// searchSysLanguagePack().then(({data}) => {
|
|
// this.$i18n.mergeLocaleMessage('en', data.data.en)
|
|
// this.$i18n.mergeLocaleMessage('cn', data.data.cn)
|
|
// })
|
|
}
|
|
},
|
|
computed: {
|
|
userName: {
|
|
get() {
|
|
return this.$store.state.user.userDisplay
|
|
}
|
|
},
|
|
mainTabs: {
|
|
get() {
|
|
return this.$store.state.common.mainTabs
|
|
},
|
|
set(val) {
|
|
this.$store.commit('common/updateMainTabs', val)
|
|
}
|
|
}
|
|
},
|
|
beforeMount() {
|
|
// this.languageRefresh()
|
|
this.languagePack()
|
|
},
|
|
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
.mod-home {
|
|
line-height: 1.5;
|
|
}
|
|
</style>
|
|
|