fix: update import statements to use local ofetch utility

This commit is contained in:
Tony
2025-11-26 03:38:50 +08:00
parent 87641236b8
commit fb3ae13f79
7 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ import cache from '@/utils/cache';
import { parseDate } from '@/utils/parse-date';
import timezone from '@/utils/timezone';
import { load } from 'cheerio';
import { ofetch } from 'ofetch';
import ofetch from '@/utils/ofetch';
export const route: Route = {
path: '/district/:category?',
+1 -1
View File
@@ -3,7 +3,7 @@ import cache from '@/utils/cache';
import { parseDate } from '@/utils/parse-date';
import timezone from '@/utils/timezone';
import { load } from 'cheerio';
import { ofetch } from 'ofetch';
import ofetch from '@/utils/ofetch';
export const route: Route = {
path: '/cs/:category?',
+1 -1
View File
@@ -3,7 +3,7 @@ import cache from '@/utils/cache';
import { parseDate } from '@/utils/parse-date';
import timezone from '@/utils/timezone';
import { load } from 'cheerio';
import { ofetch } from 'ofetch';
import ofetch from '@/utils/ofetch';
export const route: Route = {
path: '/gzc/:category?',
+1 -1
View File
@@ -3,7 +3,7 @@ import cache from '@/utils/cache';
import { parseDate } from '@/utils/parse-date';
import timezone from '@/utils/timezone';
import { load } from 'cheerio';
import { ofetch } from 'ofetch';
import ofetch from '@/utils/ofetch';
export const route: Route = {
path: '/lib/:category?',
+1 -1
View File
@@ -1,4 +1,4 @@
import { ofetch } from 'ofetch';
import ofetch from '@/utils/ofetch';
export interface TraderData {
address: string;
+1 -1
View File
@@ -3,7 +3,7 @@ import { Route } from '@/types';
import cache from '@/utils/cache';
import { load } from 'cheerio';
import { parseDate } from '@/utils/parse-date';
import { ofetch } from 'ofetch';
import ofetch from '@/utils/ofetch';
const options = {
'103': '财经资讯',
+1 -1
View File
@@ -2,7 +2,7 @@ import { Route } from '@/types';
import cache from '@/utils/cache';
import { load } from 'cheerio';
import { parseDate } from '@/utils/parse-date';
import { ofetch } from 'ofetch';
import ofetch from '@/utils/ofetch';
const rootURL = 'https://sports.swjtu.edu.cn';
const pageURL = `${rootURL}/xwzx.htm`;