更新插件组件文档,调整多个组件以支持关闭功能,增强用户交互体验,并修正配置示例以反映最新的代码结构和依赖关系。

This commit is contained in:
jxxghp
2025-05-07 08:21:44 +08:00
parent d3a6703a77
commit d3f9c04209
8 changed files with 85 additions and 296 deletions

View File

@@ -6,7 +6,7 @@ export default defineConfig({
plugins: [
vue(),
federation({
name: 'LogsClean',
name: 'MyPlugin',
filename: 'remoteEntry.js',
exposes: {
'./Page': './src/components/Page.vue',
@@ -27,9 +27,4 @@ export default defineConfig({
cors: true, // 启用CORS
origin: 'http://localhost:5001'
},
preview: {
port: 5001, // 保持与server相同的端口
cors: true, // 启用CORS
origin: 'http://localhost:5001'
}
})