b951e29c00
根因: activeSchemaId 变化后,ConfigForm 还没 emit 新默认值,generator 就用旧 config 执行了 修复: 在 App.vue 中 watch activeSchemaId,切换时立即用新 schema 默认值重置 config 同时修复 bind.js 中 forwarders.split() 的防御性空值处理
20 lines
491 B
JavaScript
20 lines
491 B
JavaScript
import { createApp } from 'vue'
|
|
import ElementPlus from 'element-plus'
|
|
import 'element-plus/dist/index.css'
|
|
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
|
|
import App from './App.vue'
|
|
|
|
const app = createApp(App)
|
|
|
|
app.config.errorHandler = (err, instance, info) => {
|
|
console.error('Vue Error:', err, info)
|
|
}
|
|
|
|
app.use(ElementPlus, { size: 'default' })
|
|
|
|
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
|
app.component(key, component)
|
|
}
|
|
|
|
app.mount('#app')
|