From 95459c33ed0b9e226ce6961ba9f2b8c916a3b7e6 Mon Sep 17 00:00:00 2001 From: whyour Date: Thu, 15 May 2025 01:19:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20import=20undici?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/services/config.ts | 2 +- back/services/system.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/back/services/config.ts b/back/services/config.ts index 3483d3ac..a12a9419 100644 --- a/back/services/config.ts +++ b/back/services/config.ts @@ -3,7 +3,7 @@ import path, { join } from 'path'; import config from '../config'; import { getFileContentByName } from '../config/util'; import { Response } from 'express'; -import { request } from 'Undici'; +import { request } from 'undici'; @Service() export default class ConfigService { diff --git a/back/services/system.ts b/back/services/system.ts index f0e3cf81..b557cda7 100644 --- a/back/services/system.ts +++ b/back/services/system.ts @@ -1,7 +1,7 @@ import { spawn } from 'cross-spawn'; import { Response } from 'express'; import fs from 'fs'; -import { Agent, request } from 'Undici'; +import { Agent, request } from 'undici'; import sum from 'lodash/sum'; import path from 'path'; import { Inject, Service } from 'typedi';