From 19aea9f4f903393f8636340feaae4dd8b5a434ef Mon Sep 17 00:00:00 2001 From: xiangxy Date: Wed, 6 Dec 2023 16:23:28 +0800 Subject: [PATCH] main --- src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index 3c76d9a..e02d9a2 100644 --- a/src/main.js +++ b/src/main.js @@ -35,7 +35,7 @@ Vue.config.productionTip = false Vue.prototype.$langPre = { computedProp (suffix) { // return localstorage.getItem( key: 'lang') + '_' + suffix - return localStorage.getItem('locale').slice(0, 2) + '_' + suffix + return i18n.locale.slice(0, 2) + '_' + suffix } }