forked from FoundKeyGang/FoundKey
wip
This commit is contained in:
parent
f339d028d2
commit
29b1541a8e
3 changed files with 15 additions and 2 deletions
3
src/web/app/app.vue
Normal file
3
src/web/app/app.vue
Normal file
|
@ -0,0 +1,3 @@
|
|||
<template>
|
||||
<router-view></router-view>
|
||||
</template>
|
|
@ -62,6 +62,11 @@ export default class MiOS extends EventEmitter {
|
|||
serverStream: ServerStreamManager;
|
||||
requestsStream: RequestsStreamManager;
|
||||
messagingIndexStream: MessagingIndexStreamManager;
|
||||
} = {
|
||||
driveStream: null,
|
||||
serverStream: null,
|
||||
requestsStream: null,
|
||||
messagingIndexStream: null
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue