...
|
...
|
@@ -12,6 +12,7 @@ import 'statics/font/iconfont.css'; |
|
|
import 'statics/font/ufofont.css';
|
|
|
|
|
|
const {app, router, store} = createApp(window.__INITIAL_STATE__ && window.__INITIAL_STATE__.yoho.context);
|
|
|
const isDegrade = Boolean(!window.__INITIAL_STATE__);
|
|
|
|
|
|
if (window.__INITIAL_STATE__) {
|
|
|
store.replaceState(window.__INITIAL_STATE__);
|
...
|
...
|
@@ -76,7 +77,7 @@ router.onReady(() => { |
|
|
return next();
|
|
|
}
|
|
|
});
|
|
|
app.$mount('#app');
|
|
|
app.$mount(isDegrade ? '#degrade-app' : '#app');
|
|
|
});
|
|
|
|
|
|
router.onError(e => {
|
...
|
...
|
|