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 } }