Skip to content

Commit db81008

Browse files
committed
🎨 i18n 国际化(顶部栏)
1 parent 7ab1ae2 commit db81008

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

middleware/i18n.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ export default function ({ isHMR, app, store, error }) {
99
}
1010
// 设置语言
1111
store.commit('locale/SET_LANG', locale)
12-
app.i18n.locale = store.state.locale
12+
app.i18n.locale = locale
1313
}

0 commit comments

Comments
 (0)