feat: 更新 @riwa/api-types 依赖至 0.0.108,修复分类创建时的 categoryId 赋值逻辑

This commit is contained in:
2026-01-08 23:40:16 +07:00
parent afb52e1a73
commit be085db45b
4 changed files with 13 additions and 9 deletions

View File

@@ -74,7 +74,9 @@ function handleAddCategory() {
if (data) {
window.$message?.success('分类创建成功');
await refreshCategories();
form.value.categoryId = data.value?.id;
if (data.value?.id) {
form.value.categoryId = data.value.id;
}
}
}
});