|
@@ -2,7 +2,6 @@ import Vue from 'vue';
|
|
|
import {
|
|
import {
|
|
|
sendMessage, i18n, getLocaleString, cache2blobUrl,
|
|
sendMessage, i18n, getLocaleString, cache2blobUrl,
|
|
|
} from '#/common';
|
|
} from '#/common';
|
|
|
-import options from '#/common/options';
|
|
|
|
|
import handlers from '#/common/handlers';
|
|
import handlers from '#/common/handlers';
|
|
|
import loadZip from '#/common/zip';
|
|
import loadZip from '#/common/zip';
|
|
|
import '#/common/ui/style';
|
|
import '#/common/ui/style';
|
|
@@ -22,14 +21,11 @@ initialize();
|
|
|
|
|
|
|
|
function initialize() {
|
|
function initialize() {
|
|
|
initMain();
|
|
initMain();
|
|
|
- options.ready.then(() => {
|
|
|
|
|
- const el = document.createElement('div');
|
|
|
|
|
- document.body.appendChild(el);
|
|
|
|
|
- new Vue({
|
|
|
|
|
- render: h => h(App),
|
|
|
|
|
- })
|
|
|
|
|
- .$mount(el);
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ const vm = new Vue({
|
|
|
|
|
+ render: h => h(App),
|
|
|
|
|
+ })
|
|
|
|
|
+ .$mount();
|
|
|
|
|
+ document.body.append(vm.$el);
|
|
|
loadZip()
|
|
loadZip()
|
|
|
.then((zip) => {
|
|
.then((zip) => {
|
|
|
store.zip = zip;
|
|
store.zip = zip;
|