refactor: 更新API路径和ElementPlus配置
This commit is contained in:
@ -86,5 +86,5 @@ export const tab2 = () => {
|
|||||||
* 获取具有上下级关系的当前的名称
|
* 获取具有上下级关系的当前的名称
|
||||||
*/
|
*/
|
||||||
export const getDictTree = (params: { type: number, id: number}) => {
|
export const getDictTree = (params: { type: number, id: number}) => {
|
||||||
return useDollarFetchRequest.get<IResponse<ProjectDictNodeVO[]>>('/prod-api/app-api/business/dict/level-by-id', { query: params })
|
return useDollarFetchRequest.get<IResponse<ProjectDictNodeVO[]>>('/business/app/dict/path-by-id', { query: params })
|
||||||
}
|
}
|
||||||
|
|||||||
@ -122,7 +122,7 @@
|
|||||||
// getEditionsList()
|
// 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 })
|
const res = await getDictTree({ type: props.type, id: query.value.projectType })
|
||||||
return res.data
|
return res.data
|
||||||
})
|
})
|
||||||
|
|||||||
@ -12,6 +12,10 @@ export default defineNuxtConfig({
|
|||||||
|
|
||||||
ssr: true,
|
ssr: true,
|
||||||
modules: ['@unocss/nuxt', '@pinia/nuxt', '@element-plus/nuxt', 'pinia-plugin-persistedstate/nuxt'],
|
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'],
|
css: ['element-plus/dist/index.css', '~/assets/scss/app.scss'],
|
||||||
vite: {
|
vite: {
|
||||||
css: {
|
css: {
|
||||||
|
|||||||
Reference in New Issue
Block a user