Ver código fonte

feat: 修改

year 3 semanas atrás
pai
commit
8e26d09c31
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      src/utils/index.ts

+ 2 - 1
src/utils/index.ts

@@ -85,8 +85,9 @@ export const goBlankPage = async (handler: Function | string, target = "_self")
         href = isFunHanlder ? await handler() : handler;
     } catch (e) {
         if (newTab) newTab.close();
+        throw new Error(e as string);
     }
-    console.log(href);
+
     if (!href) {
         if (newTab) newTab.close();
         return;