0
0
This commit is contained in:
syuilo 2018-02-10 10:52:26 +09:00
parent f339d028d2
commit 29b1541a8e
3 changed files with 15 additions and 2 deletions

3
src/web/app/app.vue Normal file
View File

@ -0,0 +1,3 @@
<template>
<router-view></router-view>
</template>

View File

@ -62,6 +62,11 @@ export default class MiOS extends EventEmitter {
serverStream: ServerStreamManager;
requestsStream: RequestsStreamManager;
messagingIndexStream: MessagingIndexStreamManager;
} = {
driveStream: null,
serverStream: null,
requestsStream: null,
messagingIndexStream: null
};
/**

View File

@ -12,6 +12,8 @@ import VueRouter from 'vue-router';
Vue.use(VueRouter);
import App from './app.vue';
import checkForUpdate from './common/scripts/check-for-update';
import MiOS from './common/mios';
@ -64,10 +66,13 @@ export default (callback, sw = false) => {
mios.init(() => {
// アプリ基底要素マウント
document.body.innerHTML = '<div id="app"><router-view></router-view></div>';
document.body.innerHTML = '<div id="app"></div>';
const app = new Vue({
router: new VueRouter()
router: new VueRouter({
mode: 'history'
}),
render: createEl => createEl(App)
}).$mount('#app');
try {