...
|
...
|
@@ -5,14 +5,17 @@ import { |
|
|
import {createApp} from './app';
|
|
|
import {createApi} from 'create-api';
|
|
|
import {Style, Toast, Dialog} from 'cube-ui'; //eslint-disable-line
|
|
|
import {get} from 'lodash';
|
|
|
import Lazy from 'vue-lazyload';
|
|
|
import yoho from 'common/yoho';
|
|
|
import 'statics/scss/common.scss';
|
|
|
import 'statics/font/iconfont.css';
|
|
|
import 'statics/font/ufofont.css';
|
|
|
|
|
|
const isDegrade = Boolean(!window.__INITIAL_STATE__);
|
|
|
const context = window.__INITIAL_STATE__ && window.__INITIAL_STATE__.yoho.context;
|
|
|
const $app = document.getElementById('app');
|
|
|
|
|
|
const isDegrade = Boolean(!($app && $app.attributes['data-server-rendered']));
|
|
|
const context = get(window, '__INITIAL_STATE__.yoho.context');
|
|
|
const {app, router, store} = createApp(context);
|
|
|
|
|
|
if (window.__INITIAL_STATE__) {
|
...
|
...
|
|