diff --git a/api/home/index.ts b/api/home/index.ts index 1f6f42f..0116da1 100644 --- a/api/home/index.ts +++ b/api/home/index.ts @@ -86,5 +86,5 @@ export const tab2 = () => { * 获取具有上下级关系的当前的名称 */ export const getDictTree = (params: { type: number, id: number}) => { - return useDollarFetchRequest.get>('/prod-api/app-api/business/dict/level-by-id', { query: params }) + return useDollarFetchRequest.get>('/business/app/dict/path-by-id', { query: params }) } diff --git a/components/kl-wallpaper-category/index.vue b/components/kl-wallpaper-category/index.vue index b77db45..062814e 100644 --- a/components/kl-wallpaper-category/index.vue +++ b/components/kl-wallpaper-category/index.vue @@ -122,7 +122,7 @@ // getEditionsList() // 获取面包屑 - const {data: breadList} = await useAsyncData(`breadList-${props.type}-${props.id}-${props.groundId}-${Date.now()}`, async () => { + const {data: breadList} = await useAsyncData(`breadList-${props.type}-${props.id}-${query.value.projectType}-${Date.now()}`, async () => { const res = await getDictTree({ type: props.type, id: query.value.projectType }) return res.data }) diff --git a/nuxt.config.ts b/nuxt.config.ts index 8dc3047..f75789d 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -12,6 +12,10 @@ export default defineNuxtConfig({ ssr: true, modules: ['@unocss/nuxt', '@pinia/nuxt', '@element-plus/nuxt', 'pinia-plugin-persistedstate/nuxt'], + elementPlus: { + importStyle: 'scss', // 或 'css',确保样式被全局导入 + themes: ['dark'], // 按需配置主题 + }, css: ['element-plus/dist/index.css', '~/assets/scss/app.scss'], vite: { css: {