mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 02:31:21 +00:00
chore: remote isWeapp mixin (#9236)
* chore: remote isWeapp mixin * fix: demo locale
This commit is contained in:
@@ -5,15 +5,6 @@ Locale.add({
|
||||
'en-US': enUS,
|
||||
});
|
||||
|
||||
export const DemoLocaleMixin = {
|
||||
computed: {
|
||||
// flag for vant-weapp demos
|
||||
isWeapp() {
|
||||
return location.search.indexOf('weapp=1') !== -1;
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
// switch lang after routing
|
||||
if (window.vueRouter) {
|
||||
window.vueRouter.afterEach((to) => {
|
||||
|
Reference in New Issue
Block a user