diff --git a/api/home/index.ts b/api/home/index.ts index f2b3cda..d6d26f9 100644 --- a/api/home/index.ts +++ b/api/home/index.ts @@ -15,7 +15,7 @@ import type { * @returns */ export const hotTop = (params: ThotTopReq) => { - return useDollarFetchRequest.get>('/prod-api/app-api/business/app/project-draw/hot-top', { params }) + return useFetchRequest.get>('/prod-api/app-api/business/app/project-draw/hot-top', { query:params }) } /** @@ -24,21 +24,21 @@ export const hotTop = (params: ThotTopReq) => { * @returns */ export const recommendTop = (params: ThotTopReq) => { - return useFetchRequest.get>('/prod-api/app-api/business/app/project-draw/recommend-top', { params }) + return useFetchRequest.get>('/prod-api/app-api/business/app/project-draw/recommend-top', { query:params }) } /** * 获取最新图纸信息 */ export const newDraw = (params: { type: number; limit: number }) => { - return useDollarFetchRequest.get>('/prod-api/app-api/business/project/index/draw-new', { params }) + return useFetchRequest.get>('/prod-api/app-api/business/project/index/draw-new', { query:params }) } /** * 首页-热点标签 */ export const hotTag = (params: { type: number; limit: number; size: number }) => { - return useDollarFetchRequest.get>('/prod-api/app-api/business/project/index/index-hot-tab', { params }) + return useFetchRequest.get>('/prod-api/app-api/business/project/index/index-hot-tab', { query:params }) } /** @@ -59,7 +59,7 @@ export const top = (params: { type: number; limit: number }) => { * 获取用户top数据 */ export const userTop = (params: { type?: number }) => { - return useDollarFetchRequest.get>('/prod-api/app-api/business/project/index/user-top', { params }) + return useFetchRequest.get>('/prod-api/app-api/business/project/index/user-top', { query:params }) } /** @@ -72,7 +72,7 @@ export const settinngPage = (params: { pageNo?: number; pageSize: number; type: * 获得首页设置信息分页 */ export const getSettingPage = (params: { type: number }) => { - return useFetchRequest.get>('/prod-api/app-api/system/index-setting/list', { params }) + return useFetchRequest.get>('/prod-api/app-api/system/index-setting/list', { query: params }) } /** diff --git a/api/upnew/index.ts b/api/upnew/index.ts index 820fabb..b0d1f7a 100644 --- a/api/upnew/index.ts +++ b/api/upnew/index.ts @@ -15,8 +15,8 @@ export const create = (params: TcreateReq) => { * @param params * @returns */ -export const parent = (params: { type: string | number; parentId: number }) => { - return useFetchRequest.get>('/prod-api/app-api/business/app/dict/parent', params) +export const parent = (params: { type: string | number; parentId: number | string }) => { + return useFetchRequest.get>('/prod-api/app-api/business/app/dict/parent', { query:params }) } /** * 获取具有上下级的字典信息 @@ -48,7 +48,7 @@ export const labels = (params: { type: string | number }) => { * @returns */ export const page = (params: pageReq) => { - return useFetchRequest.get>('/prod-api/app-api/business/app/project-draw/page', params) + return useFetchRequest.get>('/prod-api/app-api/business/app/project-draw/page', {query:params}) } /** * 获得项目表内容信息分页 diff --git a/api/upnew/types.ts b/api/upnew/types.ts index fd81d9f..9f077b6 100644 --- a/api/upnew/types.ts +++ b/api/upnew/types.ts @@ -52,7 +52,7 @@ export interface pageReq { projectId?: number | string title?: string ownedUserId?: string - editions?: string + editions?: any labels?: any[] type?: number // 类型: 1 图纸 2 文本 3 模型 source?: number | string @@ -60,7 +60,7 @@ export interface pageReq { status?: any createAddress?: string createIp?: string - projectType?: string + projectType?: any } export interface pageRes { list: { diff --git a/app.vue b/app.vue index 55c9462..8e14882 100644 --- a/app.vue +++ b/app.vue @@ -1,8 +1,12 @@ + + diff --git a/components/kl-menus-v2/index.vue b/components/kl-menus-v2/index.vue index 89ddb81..faf1b81 100644 --- a/components/kl-menus-v2/index.vue +++ b/components/kl-menus-v2/index.vue @@ -2,27 +2,27 @@
-
+
- 全部资源分类 + 全部资源分类
-
+
{{ item.name }} - 火 + 火
-
- +
+
-
+
@@ -35,7 +35,7 @@ import { BellFilled } from '@element-plus/icons-vue' import { ref, computed } from 'vue' const menuItems = ref([ - { name: '首页', path: '/index' }, + { name: '首页', path: '/' }, { name: '图纸', path: '/drawe' }, { name: '文本', path: '/text' }, { name: '模型', path: '/model' }, diff --git a/components/kl-nav-tab/index.vue b/components/kl-nav-tab/index.vue index ab75ae0..686c0e6 100644 --- a/components/kl-nav-tab/index.vue +++ b/components/kl-nav-tab/index.vue @@ -1,16 +1,16 @@