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 => {
|
if (window.vueRouter) {
|
||||||
const { lang } = (to.meta) || {};
|
window.vueRouter.afterEach(to => {
|
||||||
|
const { lang } = to.meta || {};
|
||||||
|
|
||||||
if (lang) {
|
if (lang) {
|
||||||
Locale.use(lang);
|
Locale.use(lang);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// add some basic locale messages
|
// add some basic locale messages
|
||||||
Locale.add({
|
Locale.add({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user