detail.page.js
696 Bytes
const Vue = require('vue');
const lazyload = require('vue-lazyload');
const directive = require('common/vue-directive');
const app = require('product/detail/index.vue');
const VueTouch = require('vue-touch');
const yoho = require('yoho');
require('common/vue-filter')(Vue);
Vue.use(lazyload, {
preLoad: 3
});
Vue.use(VueTouch);
Vue.use(directive);
yoho.ready(() => {
new Vue({
el: '#app',
components: {
app: app
},
created() {
setTimeout(() => {
let ssrs = document.getElementById('ssr');
if (ssrs) {
ssrs.remove();
}
}, 500);
}
});
});