fix: 修复【系统管理】向量模型下载失败后,页面上的其他模型也会显示失败状态 (#872)

This commit is contained in:
shaohuzhang1 2024-07-25 16:29:45 +08:00 committed by GitHub
parent 3a7d7e8003
commit 1d23b79c3f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -112,7 +112,7 @@ const model_list = ref<Array<Model>>([])
const updateModelById = (model_id: string, model: Model) => {
model_list.value
.filter((m) => (m.id = model_id))
.filter((m) => m.id == model_id)
.forEach((m) => {
m.status = model.status
})