vant/docs/components/mobile-computed.js
2017-04-01 16:04:32 +08:00

24 lines
416 B
JavaScript

import MobilePopup from 'components/mobile-popup.vue';
export default {
components: {
MobilePopup
},
computed: {
mobileUrl() {
if (process.env.NODE_ENV === 'production') {
return '/vue/examples#' + location.pathname.slice(4);
} else {
return '/examples.html#' + location.pathname.slice(4);
}
}
},
data() {
return {
mobileShow: false
};
}
};