This commit is contained in:
张成
2025-10-10 00:13:11 +08:00
parent f86ee00e3b
commit b39b206c4c
4 changed files with 27 additions and 38 deletions

View File

@@ -138,6 +138,8 @@ class AdminFramework {
Vue.prototype.$http = http
Vue.prototype.$tools = tools
Vue.prototype.$uiTool = uiTool
Vue.prototype.$funTool = funTool
Vue.prototype.$framework = this
this.registerGlobalComponents(Vue)
@@ -328,6 +330,11 @@ class AdminFramework {
const framework = new AdminFramework()
// 【关键】框架实例创建后立即暴露到全局,确保在任何地方都能访问
if (typeof window !== 'undefined') {
window.framework = framework
}
export default framework
export {