using tauri http api run plugin to fixed cors in App
This commit is contained in:
parent
f9a047aad4
commit
09aec7b22e
|
@ -62,7 +62,7 @@ export const FunctionToolService = {
|
|||
const api = new OpenAPIClientAxios({
|
||||
definition: yaml.load(plugin.content) as any,
|
||||
axiosConfigDefaults: {
|
||||
adapter: adapter as any,
|
||||
adapter: (window.__TAURI__ ? adapter : ["xhr"]) as any,
|
||||
baseURL,
|
||||
headers,
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue