From 422f79125a3bdccc1e6444c8624451d0decb3dc6 Mon Sep 17 00:00:00 2001 From: litian <2804272236@qq.com> Date: 星期三, 01 一月 2025 18:06:19 +0800 Subject: [PATCH] 测试 --- src/main.js | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/main.js b/src/main.js index 0079324..78d9e95 100644 --- a/src/main.js +++ b/src/main.js @@ -1,16 +1,18 @@ 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"; +// 鍏紡杈撳叆 +import { MathfieldElement } from "mathlive" Vue.config.productionTip = false; // 鑷畾涔夐厤缃� 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 +35,7 @@ const { container, onGlobalStateChange, setGlobalState } = props; Vue.prototype.onGlobalStateChange = onGlobalStateChange; Vue.prototype.setGlobalState = setGlobalState; + Vue.prototype.container = container; instance = new Vue({ // router, store, @@ -56,11 +59,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); } -- Gitblit v1.9.1