瀏覽代碼

fix: repair packaging error

nebv 4 年之前
父節點
當前提交
526e6ce22b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      build/config/vite/proxy.ts

+ 1 - 1
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] = {