diff --git a/admin/src/api/org/post.ts b/admin/src/api/org/post.ts index f5fdb686..af4d714c 100644 --- a/admin/src/api/org/post.ts +++ b/admin/src/api/org/post.ts @@ -1,7 +1,7 @@ import request from '@/utils/request' // 岗位列表 -export function postLists(params: any) { +export function postLists(params?: any) { return request.get({ url: '/system/post/list', params }) } // 岗位列表 diff --git a/admin/src/views/template/api.ts b/admin/src/views/template/api.ts index 913b415f..1b1a927b 100644 --- a/admin/src/views/template/api.ts +++ b/admin/src/views/template/api.ts @@ -1,7 +1,7 @@ import request from '@/utils/request' // 岗位列表 -export function postLists(params: Record) { +export function postLists(params?: Record) { return request.get({ url: '/system/post/list', params }) } diff --git a/admin/src/views/template/edit.vue b/admin/src/views/template/edit.vue index 6acda7e9..00d112a8 100644 --- a/admin/src/views/template/edit.vue +++ b/admin/src/views/template/edit.vue @@ -39,7 +39,7 @@