This commit is contained in:
pycook
2020-02-16 17:36:03 +08:00
parent 136853d9a4
commit 9e78955ba1
20 changed files with 298 additions and 189 deletions

View File

@@ -27,9 +27,11 @@ export default {
data () {
return {}
},
inject: ['reload'],
methods: {
SwitchLang (row) {
this.setLang(row.key)
this.reload()
}
}
}

View File

@@ -34,7 +34,7 @@
<a-menu-item key="3">
<a href="javascript:;" @click="handleLogout">
<a-icon type="logout"/>
<span>退出登录</span>
<span>{{ $t('login.logout') }}</span>
</a>
</a-menu-item>
</a-menu>
@@ -67,8 +67,8 @@ export default {
const that = this
this.$confirm({
title: '提示',
content: '真的要注销登录吗 ?',
title: this.$t('tip.warning'),
content: this.$t('login.confirmLogout'),
onOk () {
return that.Logout()
},