File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
components/ai-chat/component/chat-input-operate Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ const postImage: (data: any) => Promise<Result<any>> = (data) => {
1010 return post ( `${ prefix } ` , data )
1111}
1212
13- const getFile : ( params : any ) => Promise < Result < any > > = ( params ) => {
14- return get ( `/oss/get_url` , params )
13+ const getFile : ( application_id : string , params : any ) => Promise < Result < any > > = ( application_id , params ) => {
14+ return get ( `/oss/get_url/ ${ application_id } ` , params )
1515}
1616export default {
1717 postImage,
Original file line number Diff line number Diff line change @@ -1237,7 +1237,8 @@ async function saveUrl() {
12371237 // 异步校验单个 URL
12381238 async function processUrl(url : string ) {
12391239 try {
1240- const res = await imageApi .getFile ({url });
1240+ const appId = props .appId || props .applicationDetails ?.id ;
1241+ const res = await imageApi .getFile (appId , {url });
12411242 if (! res .data ) {
12421243 MsgWarning (url + ' ' + t (' chat.uploadFile.invalidUrl' ));
12431244 return ;
You can’t perform that action at this time.
0 commit comments