fix: demo snapshot

This commit is contained in:
陈嘉涵 2019-12-19 11:21:24 +08:00
parent ca744049ad
commit 5cfa9ac808

View File

@ -45,13 +45,15 @@ Vue.mixin({
}
});
window.vueRouter.afterEach(to => {
const { lang } = (to.meta) || {};
if (window.vueRouter) {
window.vueRouter.afterEach(to => {
const { lang } = to.meta || {};
if (lang) {
Locale.use(lang);
}
});
if (lang) {
Locale.use(lang);
}
});
}
// add some basic locale messages
Locale.add({