Merge pull request #163 from nagisa77/56d2qk-codex

Improve tag creation error handling on publish
This commit is contained in:
Tim
2025-07-10 11:35:49 +08:00
committed by GitHub

View File

@@ -138,6 +138,13 @@ export default {
selectedTags.value[i] = data.id
// update local TagSelect options handled by component
} else {
let data
try {
data = await res.json()
} catch (e) {
data = null
}
toast.error((data && data.error) || '创建标签失败')
throw new Error('create tag failed')
}
}