From 6ff1492ef76aca6cdc9637159575eccbefc8617c Mon Sep 17 00:00:00 2001 From: purocean Date: Tue, 2 Nov 2021 17:24:59 +0800 Subject: [PATCH] =?UTF-8?q?upd(utils/path):=20resolve=20=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=BB=98=E8=AE=A4=E5=BD=93=E5=89=8D=E7=9B=AE?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/utils/path.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/renderer/utils/path.ts b/src/renderer/utils/path.ts index d1af3205..c585c11e 100644 --- a/src/renderer/utils/path.ts +++ b/src/renderer/utils/path.ts @@ -5,9 +5,12 @@ export const { extname, dirname, join, - resolve, } = Path +export function resolve (...args: string[]) { + return Path.resolve('/', ...args) +} + export function relative (from: string, to: string) { return Path.relative( from.startsWith('/') ? from : ('/' + from),