1
0
tangning vor 7 Monaten
Ursprung
Commit
b1d1366160
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      src/request/index.ts

+ 1 - 1
src/request/index.ts

@@ -35,7 +35,7 @@ axios.interceptors.request.use(async (config) => {
   if (config.method === "get" && config.params) {
     for (const key in config.params) {
       const val = config.params[key];
-      if (typeof val === "string") {
+      if (typeof val === "string" && !!val) {
         config.params[key] = val.replaceAll(/[\[\]]/g, "").trim();
       }
     }