From 218a387c6191311ed29b1aa81612e0aa3b4fa9dc Mon Sep 17 00:00:00 2001
From: zhongshujie <2862698242@qq.com>
Date: 星期三, 16 十月 2024 18:03:13 +0800
Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/testbookLayout

---
 src/main.js |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/main.js b/src/main.js
index 6e7021d..a647faf 100644
--- a/src/main.js
+++ b/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";
@@ -30,7 +30,10 @@
 let instance = null;
 
 function render(props = {}) {
-  const { container } = props;
+  const { container, onGlobalStateChange, setGlobalState } = props;
+  Vue.prototype.onGlobalStateChange = onGlobalStateChange;
+  Vue.prototype.setGlobalState = setGlobalState;
+  Vue.prototype.container = container;
   instance = new Vue({
     // router,
     store,
@@ -54,11 +57,9 @@
     store.commit("setQiankun", state);
   });
 
-  props.setGlobalState({
-    state: 3, // 搴旂敤鎸傝浇瀹屾垚锛屽悓鏃剁敤浜庤Е鍙戜竴娆tateChange灏唖tate鎸傝浇鍦╲uex褰撲腑
-    bookName:config.activeBook.bookName,
-    bookId:config.activeBook.bookId
-  });
+  // props.setGlobalState({
+  //   state: 3, // 搴旂敤鎸傝浇瀹屾垚锛屽悓鏃剁敤浜庤Е鍙戜竴娆tateChange灏唖tate鎸傝浇鍦╲uex褰撲腑
+  // });
 
   render(props);
 }
@@ -72,4 +73,3 @@
 // export async function update(props) {
 //   render(props);
 // }
-

--
Gitblit v1.9.1