diff --git a/src/main.js b/src/main.js index 5009e3c..b987338 100644 --- a/src/main.js +++ b/src/main.js @@ -74,6 +74,14 @@ SSO.init(() => { Vue.prototype.global = { emptyLine: '—' } +// 当前是中文 +Vue.prototype.isChinese = function () { + return this.$i18n.locale === 'zh-cn' +} +// 当前是英文 +Vue.prototype.isEnglish = function () { + return this.$i18n.locale === 'en-us' +} function main () { new Vue({