tangning 7 months ago
parent
commit
b1d1366160
1 changed files with 1 additions and 1 deletions
  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();
       }
     }