mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-03 12:39:12 +08:00
chore(all): 开发环境用qiankun启动时可使用vue-tools
This commit is contained in:
parent
4bf6204cba
commit
cf885b8e76
@ -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({
|
||||
|
@ -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});
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
// 独立运行时
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
// 独立运行时
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
// 独立运行时
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
// 独立运行时
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
// 独立运行时
|
||||
|
Loading…
Reference in New Issue
Block a user