This commit is contained in:
cookfront
2017-04-10 10:46:50 +08:00
parent 481f46e41f
commit eccbd2269c
48 changed files with 77 additions and 58 deletions

View File

@@ -0,0 +1,23 @@
import MobilePopup from './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
};
}
};