瀏覽代碼

add console.info("url", url);

visuddhinanda 2 年之前
父節點
當前提交
d6961c07f6
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      dashboard/src/components/corpus/SentHistory.tsx

+ 3 - 3
dashboard/src/components/corpus/SentHistory.tsx

@@ -53,10 +53,10 @@ const SentHistoryWidget = ({ sentId }: IWidget) => {
         if (typeof params.keyword !== "undefined") {
         if (typeof params.keyword !== "undefined") {
           url += "&search=" + (params.keyword ? params.keyword : "");
           url += "&search=" + (params.keyword ? params.keyword : "");
         }
         }
+        console.info("url", url);
         const res = await get<ISentHistoryListResponse>(url);
         const res = await get<ISentHistoryListResponse>(url);
         if (res.ok) {
         if (res.ok) {
-          console.log(res.data);
-
+          console.debug(res.data);
           const items: ISentHistory[] = res.data.rows.map((item, id) => {
           const items: ISentHistory[] = res.data.rows.map((item, id) => {
             return {
             return {
               content: item.content,
               content: item.content,
@@ -64,7 +64,7 @@ const SentHistoryWidget = ({ sentId }: IWidget) => {
               createdAt: item.created_at,
               createdAt: item.created_at,
             };
             };
           });
           });
-          console.log(items);
+          console.debug(items);
           return {
           return {
             total: res.data.count,
             total: res.data.count,
             succcess: true,
             succcess: true,