File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
pages/chatPreview/components/star-apps Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export function deleteAppApi(tenantId,appId) {
3333 *
3434 * */
3535export 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 * */
4848export 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 * */
5858export 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+ }
You can’t perform that action at this time.
0 commit comments