You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
iot/projects/Platform/wwwroot/js/start.js

28 lines
696 B

const { loadModule, vueVersion } = window['vue2-sfc-loader'];
const options = {
moduleCache: {
vue: Vue,
myData: {
vueVersion,
}
},
getFile(url) {
console.log(url);
},
addStyle() {
const style = Object.assign(document.createElement('style'), { textContent });
const ref = document.head.getElementsByTagName('style')[0] || null;
document.head.insertBefore(style, ref);
}
}
const app = new Vue({
el: '#app',
router,
store: store,
mounted: function () {
//router.push(config.file('components/views/home/index.html'))
connect();
console.log('app start');
}
});