mirror of
https://github.com/youzan/vant.git
synced 2025-10-17 08:37:23 +00:00
fix: demo snapshot
This commit is contained in:
@@ -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({
|
||||
|
Reference in New Issue
Block a user