diff --git a/open-isle-cli/src/components/CategorySelect.vue b/open-isle-cli/src/components/CategorySelect.vue index fc9a6b867..34056995d 100644 --- a/open-isle-cli/src/components/CategorySelect.vue +++ b/open-isle-cli/src/components/CategorySelect.vue @@ -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() diff --git a/open-isle-cli/src/components/TagSelect.vue b/open-isle-cli/src/components/TagSelect.vue index e79b43253..77222de92 100644 --- a/open-isle-cli/src/components/TagSelect.vue +++ b/open-isle-cli/src/components/TagSelect.vue @@ -1,5 +1,6 @@