mirror of
https://github.com/vastxie/99AI.git
synced 2025-11-11 03:03:43 +08:00
fix(online-search): Resolve 'fetch not defined' error via cross-fetch import
* Add cross-fetch dependency for network request compatibility
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import { handleError } from '@/common/utils';
|
import { handleError } from '@/common/utils';
|
||||||
import { Injectable, Logger } from '@nestjs/common';
|
import { Injectable, Logger } from '@nestjs/common';
|
||||||
|
import fetch from 'cross-fetch';
|
||||||
import { GlobalConfigService } from '../../globalConfig/globalConfig.service';
|
import { GlobalConfigService } from '../../globalConfig/globalConfig.service';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
|
|||||||
Reference in New Issue
Block a user