From 388ba1614b33f044688e0c55e281b74248f07974 Mon Sep 17 00:00:00 2001 From: danshihao Date: Tue, 6 Aug 2024 14:42:14 +0800 Subject: [PATCH] =?UTF-8?q?[update=20=E5=85=A8=E5=B1=80]=20=E5=85=A8?= =?UTF-8?q?=E5=B1=80=E5=A2=9E=E5=8A=A0=E5=88=A4=E6=96=AD=E5=BD=93=E5=89=8D?= =?UTF-8?q?=E8=AF=AD=E8=A8=80=E7=9A=84=E6=96=B9=E6=B3=95=EF=BC=8C=E7=94=A8?= =?UTF-8?q?=E4=BA=8E=E5=88=A4=E6=96=AD=E5=BD=93=E5=89=8D=E8=AF=AD=E8=A8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 8 ++++++++ 1 file changed, 8 insertions(+) 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({