mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-07-24 13:36:28 +00:00
feat(frontend): add none options for category and tag
This commit is contained in:
@@ -18,7 +18,8 @@ export default {
|
||||
const fetchCategories = async () => {
|
||||
const res = await fetch(`${API_BASE_URL}/api/categories`)
|
||||
if (!res.ok) return []
|
||||
return await res.json()
|
||||
const data = await res.json()
|
||||
return [{ id: '', name: '无分类' }, ...data]
|
||||
}
|
||||
|
||||
const selected = computed({
|
||||
|
||||
Reference in New Issue
Block a user