Переглянути джерело

🐛 修复 post 和 dept 在 IDEA 报错的问题

(cherry picked from commit a77173f2ae7b613a3a20b076ecce7473357a46b5)
YunaiV 1 рік тому
батько
коміт
9a49a8ea40

+ 1 - 1
src/api/system/dept/index.ts

@@ -19,7 +19,7 @@ export interface DeptPageReqVO {
 
 // 查询部门(精简)列表
 export const listSimpleDeptApi = async () => {
-  return await request.get({ url: '/system/dept/list-all-simple' })
+  return await request.get({ url: '/system/dept/simple-list' })
 }
 
 // 查询部门列表

+ 1 - 1
src/api/system/post/index.ts

@@ -29,7 +29,7 @@ export const getPostPageApi = async (params: PostPageReqVO) => {
 
 // 获取岗位精简信息列表
 export const listSimplePostsApi = async () => {
-  return await request.get({ url: '/system/post/list-all-simple' })
+  return await request.get({ url: '/system/post/simple-list' })
 }
 
 // 查询岗位详情

+ 2 - 2
src/utils/formatTime.ts

@@ -247,9 +247,9 @@ export function formatPast2(ms) {
  * @param cellValue 字段值
  */
 // @ts-ignore
-export const dateFormatter = (row, column, cellValue) => {
+export const dateFormatter = (row, column, cellValue): string => {
   if (!cellValue) {
-    return
+    return ''
   }
   return formatDate(cellValue)
 }