diff --git a/api-test/frontend/src/main.js b/api-test/frontend/src/main.js index 015e6a2483..c669dca8fe 100644 --- a/api-test/frontend/src/main.js +++ b/api-test/frontend/src/main.js @@ -61,6 +61,13 @@ function render(props = {}) { pinia, render: (h) => h(App), }).$mount(container ? container.querySelector('#app') : '#app'); + + // 解决qiankun下,vue-devtools不显示的问题 + if (process.env.NODE_ENV === 'development') { + const instanceDiv = document.createElement('div') + instanceDiv.__vue__ = instance + document.body.appendChild(instanceDiv) + } // 微服务过来的路由 if (defaultPath || routeName) { microRouter.push({ diff --git a/performance-test/frontend/src/main.js b/performance-test/frontend/src/main.js index 5816cc5be0..a1a25dce5e 100644 --- a/performance-test/frontend/src/main.js +++ b/performance-test/frontend/src/main.js @@ -54,6 +54,12 @@ function render(props = {}) { pinia, render: h => h(App), }).$mount(container ? container.querySelector('#app') : '#app'); + // 解决qiankun下,vue-devtools不显示的问题 + if (process.env.NODE_ENV === 'development') { + const instanceDiv = document.createElement('div') + instanceDiv.__vue__ = instance + document.body.appendChild(instanceDiv) + } // 微服务过来的路由 if (defaultPath || routeName) { microRouter.push({path: defaultPath, params: routeParams, name: routeName}); diff --git a/project-management/frontend/src/main.js b/project-management/frontend/src/main.js index 970fd12625..568725a37e 100644 --- a/project-management/frontend/src/main.js +++ b/project-management/frontend/src/main.js @@ -52,6 +52,13 @@ function render(props = {}) { pinia, render: (h) => h(App), }).$mount(container ? container.querySelector("#app") : "#app"); + + // 解决qiankun下,vue-devtools不显示的问题 + if (process.env.NODE_ENV === 'development') { + const instanceDiv = document.createElement('div') + instanceDiv.__vue__ = instance + document.body.appendChild(instanceDiv) + } } // 独立运行时 diff --git a/report-stat/frontend/src/main.js b/report-stat/frontend/src/main.js index ea8d943e76..478a403d12 100644 --- a/report-stat/frontend/src/main.js +++ b/report-stat/frontend/src/main.js @@ -53,6 +53,13 @@ function render(props = {}) { pinia, render: h => h(App), }).$mount(container ? container.querySelector('#app') : '#app'); + + // 解决qiankun下,vue-devtools不显示的问题 + if (process.env.NODE_ENV === 'development') { + const instanceDiv = document.createElement('div') + instanceDiv.__vue__ = instance + document.body.appendChild(instanceDiv) + } } // 独立运行时 diff --git a/system-setting/frontend/src/main.js b/system-setting/frontend/src/main.js index 43bc267bb0..41a6927fd7 100644 --- a/system-setting/frontend/src/main.js +++ b/system-setting/frontend/src/main.js @@ -50,6 +50,13 @@ function render(props = {}) { pinia, render: h => h(App), }).$mount(container ? container.querySelector('#app') : '#app'); + + // 解决qiankun下,vue-devtools不显示的问题 + if (process.env.NODE_ENV === 'development') { + const instanceDiv = document.createElement('div') + instanceDiv.__vue__ = instance + document.body.appendChild(instanceDiv) + } } // 独立运行时 diff --git a/test-track/frontend/src/main.js b/test-track/frontend/src/main.js index 30c4d2bb96..c4adb0814a 100644 --- a/test-track/frontend/src/main.js +++ b/test-track/frontend/src/main.js @@ -68,6 +68,13 @@ function render(props = {}) { pinia, render: h => h(App), }).$mount(container ? container.querySelector('#app') : '#app'); + + // 解决qiankun下,vue-devtools不显示的问题 + if (process.env.NODE_ENV === 'development') { + const instanceDiv = document.createElement('div') + instanceDiv.__vue__ = instance + document.body.appendChild(instanceDiv) + } } // 独立运行时 diff --git a/workstation/frontend/src/main.js b/workstation/frontend/src/main.js index 839d441a7b..be87f845fa 100644 --- a/workstation/frontend/src/main.js +++ b/workstation/frontend/src/main.js @@ -54,6 +54,13 @@ function render(props = {}) { pinia, render: h => h(App), }).$mount(container ? container.querySelector('#app') : '#app'); + + // 解决qiankun下,vue-devtools不显示的问题 + if (process.env.NODE_ENV === 'development') { + const instanceDiv = document.createElement('div') + instanceDiv.__vue__ = instance + document.body.appendChild(instanceDiv) + } } // 独立运行时