fix: 让代码展示背景的样式更加现代化,修复分类选择框仅有一个当前分类的问题

Fixes #558
This commit is contained in:
AnNingUI
2025-08-14 21:05:08 +08:00
parent f6c0c8e226
commit 0ee62a3a04
2 changed files with 3 additions and 3 deletions

View File

@@ -43,7 +43,7 @@
--menu-selected-background-color: rgba(255, 255, 255, 0.1);
--menu-text-color: white;
--normal-background-color: #000000;
--lottery-background-color: #4e4e4e;
--lottery-background-color: #262b35;
--login-background-color: #575757;
--login-background-color-hover: #717171;
--text-color: #eee;

View File

@@ -116,7 +116,7 @@
</div>
</template>
<script setup>
import { ref, watch, watchEffect, computed, onMounted, onBeforeUnmount } from 'vue'
import { computed, onMounted, ref, watch } from 'vue'
import ArticleCategory from '~/components/ArticleCategory.vue'
import ArticleTags from '~/components/ArticleTags.vue'
import CategorySelect from '~/components/CategorySelect.vue'
@@ -195,7 +195,7 @@ watch(
const loadOptions = async () => {
if (selectedCategory.value && !isNaN(selectedCategory.value)) {
try {
const res = await fetch(`${API_BASE_URL}/api/categories/${selectedCategory.value}`)
const res = await fetch(`${API_BASE_URL}/api/categories/`)
if (res.ok) categoryOptions.value = [await res.json()]
} catch {}
}