Explorar el Código

fix: 日志模糊查询

CalciumIon hace 1 año
padre
commit
b7690fe17d
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      web/src/components/LogsTable.js

+ 1 - 0
web/src/components/LogsTable.js

@@ -534,6 +534,7 @@ const LogsTable = () => {
     } else {
       url = `/api/log/self/?p=${startIdx}&page_size=${pageSize}&type=${logType}&token_name=${token_name}&model_name=${model_name}&start_timestamp=${localStartTimestamp}&end_timestamp=${localEndTimestamp}`;
     }
+    url = encodeURI(url);
     const res = await API.get(url);
     const { success, message, data } = res.data;
     if (success) {