mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-06-26 23:54:21 +00:00
feat: update ui logic
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user