完善国际化的提示信息
Former-commit-id: a12931143ccd14977e5e6665cc325b28f1e1f9e1 [formerly a12931143ccd14977e5e6665cc325b28f1e1f9e1 [formerly a12931143ccd14977e5e6665cc325b28f1e1f9e1 [formerly a12931143ccd14977e5e6665cc325b28f1e1f9e1 [formerly bf39a4fc45d5365eef5a7546fdb0a75d81529163 [formerly aa2fc33a8844c5913db69b061db6e781250a1b31]]]]] Former-commit-id: 71f2896e93f3f93378832aac832db8c64cda4763 Former-commit-id: 1dba4a4ac571a992f5d05e0942c105ec09b622d6 Former-commit-id: 6eccf026406742594f10ec7f2e98e1959c812d88 [formerly d8173e947af2ac49e1a04b707e6b55e9a9b74450] Former-commit-id: b4bcf0dc36ab076ffb0ed0a1c35a581c08e8afe0 Former-commit-id: 9233f38f248547ea9c317904e15254990737d070 Former-commit-id: 510d59701f174a2cc0e4d388766159213c42f0bb Former-commit-id: e24ad2163ca606a37cc847f830f0360704abe95b Former-commit-id: 0557ac2f138d57e7187fbb6c2d5e8d5968d765c0
This commit is contained in:
parent
136490478c
commit
e74744f49a
|
|
@ -23,12 +23,20 @@ export default {
|
|||
methods: {
|
||||
onChangeLocale (command) {
|
||||
this.$i18n.locale = command
|
||||
let message = `当前语言:${this.$t('_name')} [ ${this.$i18n.locale} ]`
|
||||
if (!['TRAVIS', 'NETLIFY'].includes(process.env.VUE_APP_BUILD_MODE)) {
|
||||
message = [
|
||||
`当前语言:${this.$t('_name')} [ ${this.$i18n.locale} ]`,
|
||||
`仅提供切换功能,没有配置具体的语言数据 `,
|
||||
`文档参考:<a class="el-link el-link--primary is-underline" target="_blank" href="https://doc.d2admin.fairyever.com/zh/sys-locales/">《国际化 | D2Admin》</a>`
|
||||
].join('<br/>')
|
||||
}
|
||||
this.$notify({
|
||||
title: '提示',
|
||||
title: '语言变更',
|
||||
dangerouslyUseHTMLString: true,
|
||||
message: `当前语言:${this.$t('_name')} [ ${this.$i18n.locale} ]<br/>仅提供切换功能,没有具体的语言设置`
|
||||
message
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in New Issue