Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.
Go agentagenticaichatbotdsh-pluginembeddingsevaluationgenerative-aigolangknowledge-basellmmulti-tenantollamaopenaiquestion-answeringragrerankingsemantic-searchvector-searchwiki
fix(organization): invalidate fetch cache after creating org
Binks Rivertonc25d762ed144
diff --git a/frontend/src/stores/organization.ts b/frontend/src/stores/organization.tsindex 6bcc8d944..3df7e4303 100644--- a/frontend/src/stores/organization.ts+++ b/frontend/src/stores/organization.ts@@ -112,6 +112,9 @@ export const useOrganizationStore = defineStore('organization', () => {const response = await createOrganization({ name, description })if (response.success && response.data) {organizations.value.unshift(response.data)+ // 创建成功后重置缓存时间戳,确保后续 fetchOrganizations() 不会被 TTL 缓存跳过,+ // 从而刷新 resource_counts 等创建接口不返回的聚合字段。+ organizationsLoadedAt = 0return response.data} else {error.value = response.message || 'Failed to create organization'