fix: import

This commit is contained in:
Louis 2025-08-19 22:16:24 +07:00
parent a210e2f13a
commit df41bad465
No known key found for this signature in database
GPG Key ID: 44FA9F4D33C37DE2
2 changed files with 3 additions and 1 deletions

View File

@ -17,4 +17,7 @@ export default defineConfig({
IS_MAC: JSON.stringify(process.platform === 'darwin'),
IS_LINUX: JSON.stringify(process.platform === 'linux'),
},
inject: {
fetch: ['@tauri-apps/plugin-http', 'fetch'],
},
})

View File

@ -23,7 +23,6 @@ import {
} from '@janhq/core'
import { error, info, warn } from '@tauri-apps/plugin-log'
import { fetch } from "@tauri-apps/plugin-http"
import {
listSupportedBackends,