1
YM
2024-06-07 6486b1f44de87dc6f60388e10e9a65ae206df120
src/main.js
@@ -1,7 +1,6 @@
import Vue from "vue";
import App from "./App.vue";
import less from "less";
import "./books/childHealth/assets/main.less";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import store from "./store";
@@ -11,6 +10,7 @@
// 自定义配置
import config from "@/assets/js/config";
Vue.prototype.config = config;
// Vue.prototype.thisBookConfig = await config.getBookConfig();
// 请求处理
import MG from "@/assets/js/middleGround/WebMiddleGroundApi";
@@ -33,6 +33,7 @@
  const { container, onGlobalStateChange, setGlobalState } = props;
  Vue.prototype.onGlobalStateChange = onGlobalStateChange;
  Vue.prototype.setGlobalState = setGlobalState;
  Vue.prototype.container = container;
  instance = new Vue({
    // router,
    store,
@@ -58,8 +59,6 @@
  props.setGlobalState({
    state: 3, // 应用挂载完成,同时用于触发一次stateChange将state挂载在vuex当中
    bookName: config.activeBook.bookName,
    bookId: config.activeBook.bookId
  });
  render(props);