From 526e6ce22bf15cd04a09faf53a08ac43da491534 Mon Sep 17 00:00:00 2001 From: nebv Date: Sun, 11 Oct 2020 01:18:38 +0800 Subject: [PATCH] fix: repair packaging error --- build/config/vite/proxy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/config/vite/proxy.ts b/build/config/vite/proxy.ts index 1ecd7492..a23b75ab 100644 --- a/build/config/vite/proxy.ts +++ b/build/config/vite/proxy.ts @@ -2,7 +2,7 @@ type ProxyItem = [string, string]; type ProxyList = ProxyItem[]; -export function createProxy(list: ProxyList) { +export function createProxy(list: ProxyList = []) { const ret: any = {}; for (const [prefix, target] of list) { ret[prefix] = {