From c30c9dfb8ecb8711dcc05caa0181f895b63f8e7b Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期三, 22 五月 2024 14:18:06 +0800 Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/testbookLayout --- src/main.js | 15 +++++++++++---- 1 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/main.js b/src/main.js index 07be28c..17ec245 100644 --- a/src/main.js +++ b/src/main.js @@ -1,7 +1,12 @@ import Vue from "vue"; import App from "./App.vue"; import less from "less"; -import "./books/childHealth/assets/main.less"; +// 瀛﹀墠鍎跨鍗敓涓庡仴搴� + + +// import './books/content/css/default.less'; +// 宓屽叆寮忕粍鎬佹帶鍒舵妧鏈� +// import './books/embedded/assets/main.less'; import ElementUI from "element-ui"; import "element-ui/lib/theme-chalk/index.css"; import store from "./store"; @@ -30,7 +35,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, @@ -55,7 +63,7 @@ }); props.setGlobalState({ - state: 3 // 搴旂敤鎸傝浇瀹屾垚锛屽悓鏃剁敤浜庤Е鍙戜竴娆tateChange灏唖tate鎸傝浇鍦╲uex褰撲腑 + state: 3, // 搴旂敤鎸傝浇瀹屾垚锛屽悓鏃剁敤浜庤Е鍙戜竴娆tateChange灏唖tate鎸傝浇鍦╲uex褰撲腑 }); render(props); @@ -70,4 +78,3 @@ // export async function update(props) { // render(props); // } - -- Gitblit v1.9.1