From 58d7e50de3432a4772ec0749661ec1f51c9c6086 Mon Sep 17 00:00:00 2001 From: NickLuo <69481226@qq.com> Date: 星期三, 13 十二月 2023 08:55:46 +0800 Subject: [PATCH] !63 关闭动态路由tab页签时不清理组件缓存 * 动态路由页面关闭时不清理组件缓存,避免清理已打开的多个路由页面缓存 --- src/api/system/post/index.ts | 46 +++++++++++++++++++++++----------------------- 1 files changed, 23 insertions(+), 23 deletions(-) diff --git a/src/api/system/post/index.ts b/src/api/system/post/index.ts index 84d5615..3e523ab 100644 --- a/src/api/system/post/index.ts +++ b/src/api/system/post/index.ts @@ -4,43 +4,43 @@ // 鏌ヨ宀椾綅鍒楄〃 export function listPost(query: PostQuery): AxiosPromise<PostVO[]> { - return request({ - url: '/system/post/list', - method: 'get', - params: query - }); + return request({ + url: '/system/post/list', + method: 'get', + params: query + }); } // 鏌ヨ宀椾綅璇︾粏 export function getPost(postId: string | number): AxiosPromise<PostVO> { - return request({ - url: '/system/post/' + postId, - method: 'get' - }); + return request({ + url: '/system/post/' + postId, + method: 'get' + }); } // 鏂板宀椾綅 export function addPost(data: PostForm) { - return request({ - url: '/system/post', - method: 'post', - data: data - }); + return request({ + url: '/system/post', + method: 'post', + data: data + }); } // 淇敼宀椾綅 export function updatePost(data: PostForm) { - return request({ - url: '/system/post', - method: 'put', - data: data - }); + return request({ + url: '/system/post', + method: 'put', + data: data + }); } // 鍒犻櫎宀椾綅 export function delPost(postId: string | number | (string | number)[]) { - return request({ - url: '/system/post/' + postId, - method: 'delete' - }); + return request({ + url: '/system/post/' + postId, + method: 'delete' + }); } -- Gitblit v1.9.3