1
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user