✨ Improve extension management

This commit is contained in:
landaiqing committed 2025-06-25 17:50:50 +08:00
1 parent 8e91e3cf7c
commit 650884cb85
12 files changed
+455 -567

No files matched your search

+1
View File
@@ -270,6 +270,7 @@ export const useEditorStore = defineStore('editor', () => {
// 如果需要更新配置
await ExtensionService.UpdateExtensionState(id, enabled, config)
}
// 更新前端编辑器
const manager = getExtensionManager()
if (manager) {
+1 -1
View File
@@ -19,7 +19,7 @@ export const useExtensionStore = defineStore('extension', () => {
try {
extensions.value = await ExtensionService.GetAllExtensions()
} catch (err) {
console.error('Failed to load extensions:', err)
console.error('[ExtensionStore] Failed to load extensions:', err)
}
}