Skip to content

Commit 84e5e81

Browse files
author
陈潇文
committed
[frontend] 修改收藏接口url
1 parent 9010bdd commit 84e5e81

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

frontend/src/pages/chatPreview/components/star-apps/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const StarApps = ({ handleAt }) => {
5252
1: async (item: AnyAction) => {
5353
if (item?.id) {
5454
await cancelUserCollection({
55-
usrInfo: getLocalUser(),
55+
userInfo: getLocalUser(),
5656
aippId: item.aippId,
5757
})
5858
}

frontend/src/shared/http/appDev.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export function deleteAppApi(tenantId,appId) {
3333
*
3434
* */
3535
export function updateCollectionApp(userName, defaultApp) {
36-
const url = `${COLLECT_URL}/usr/info`
36+
const url = `${COLLECT_URL}/user/info`
3737
return patch(url, {
3838
userName,
3939
defaultApp,
@@ -46,17 +46,17 @@ export function updateCollectionApp(userName, defaultApp) {
4646
* @property {string} id - 用户id.
4747
* */
4848
export function getUserCollection(id) {
49-
const url = `${COLLECT_URL}/usr/collection/app/${id}`
49+
const url = `${COLLECT_URL}/user/collection/app/${id}`
5050
return get(url);
5151
}
5252

5353
/**
5454
* @description 取消收藏
55-
* @property {string} usrInfo - 用户id.
55+
* @property {string} userInfo - 用户id.
5656
* @property {string} aippId - 用户appId.
5757
* */
5858
export function cancelUserCollection(data) {
5959
data.appId = data.aippId;
60-
const url = `${COLLECT_URL}/usr/collection`;
60+
const url = `${COLLECT_URL}/user/collection`;
6161
return del(url, data);
62-
}
62+
}

0 commit comments

Comments
 (0)