feat: update ui logic

This commit is contained in:
tim
2025-07-10 14:19:11 +08:00
parent c2c0efc0fb
commit 17a80f2579
2 changed files with 15 additions and 17 deletions
@@ -40,9 +40,6 @@ export default {
)
const fetchCategories = async () => {
if (providedOptions.value.length) {
return [{ id: '', name: '无分类' }, ...providedOptions.value]
}
const res = await fetch(`${API_BASE_URL}/api/categories`)
if (!res.ok) return []
const data = await res.json()