fix: update import statements to use local ofetch utility
This commit is contained in:
@@ -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?',
|
||||
|
||||
@@ -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?',
|
||||
|
||||
@@ -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?',
|
||||
|
||||
@@ -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,4 +1,4 @@
|
||||
import { ofetch } from 'ofetch';
|
||||
import ofetch from '@/utils/ofetch';
|
||||
|
||||
export interface TraderData {
|
||||
address: string;
|
||||
|
||||
@@ -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': '财经资讯',
|
||||
|
||||
@@ -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`;
|
||||
|
||||
Reference in New Issue
Block a user