mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix: demo snapshot
This commit is contained in:
parent
ca744049ad
commit
5cfa9ac808
@ -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({
|
||||
|
Loading…
x
Reference in New Issue
Block a user