diff --git a/src/layout/header-aside/components/header-locales/index.vue b/src/layout/header-aside/components/header-locales/index.vue
index 5b6fd3c5..a5fd389e 100644
--- a/src/layout/header-aside/components/header-locales/index.vue
+++ b/src/layout/header-aside/components/header-locales/index.vue
@@ -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} ]`,
+ `仅提供切换功能,没有配置具体的语言数据 `,
+ `文档参考:《国际化 | D2Admin》`
+ ].join('
')
+ }
this.$notify({
- title: '提示',
+ title: '语言变更',
dangerouslyUseHTMLString: true,
- message: `当前语言:${this.$t('_name')} [ ${this.$i18n.locale} ]
仅提供切换功能,没有具体的语言设置`
+ message
})
}
- }
+ }
}