Skip to content
This repository was archived by the owner on Dec 31, 2024. It is now read-only.

Commit b42fd9a

Browse files
committed
⚡ improvement(asset): update locale reactivity setting
1 parent 94769ab commit b42fd9a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/asset.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default function (Vue, langVM) {
1919
} else {
2020
setLocale(id, definition, locale => {
2121
if (locale) {
22-
langVM.locales[id] = locale
22+
langVM.$set(langVM.locales, id, locale)
2323
} else {
2424
warn('failed set `' + id + '` locale')
2525
}

0 commit comments

Comments
 (0)