diff --git a/todo-web/apis/apiPath.js b/todo-web/apis/apiPath.js index 1e0125c..f4c8202 100644 --- a/todo-web/apis/apiPath.js +++ b/todo-web/apis/apiPath.js @@ -1,6 +1,6 @@ export const POST = "POST"; export const GET = "GET"; -export const ApiPrefix = process.env.NODE_ENV === 'development' ? "http://192.168.50.2:3000" : "https://todo.sbx0.cn"; +export const ApiPrefix = process.env.NODE_ENV === 'development' ? "http://127.0.0.1:3000" : "https://todo.sbx0.cn"; export const API = "/api"; export const GetToken = API + "/user/client/token"; export const TaskPaging = API + "/task/paging"; diff --git a/todo-web/app/beta/page.jsx b/todo-web/app/beta/page.jsx index e773207..6d2f73b 100644 --- a/todo-web/app/beta/page.jsx +++ b/todo-web/app/beta/page.jsx @@ -1,9 +1,9 @@ export default function Page() { return
-
diff --git a/todo-web/app/components/header/header.jsx b/todo-web/app/components/header/header.jsx index 954b94d..2df96b4 100644 --- a/todo-web/app/components/header/header.jsx +++ b/todo-web/app/components/header/header.jsx @@ -14,7 +14,10 @@ export default function Header() { return
-

Next Todo

+

window.location.href = "/"}> + Next Todo +

; } @@ -57,7 +57,7 @@ export default function NavBar({ return
+ className="block w-full font-medium text-gray-900 bg-white border-t border-l border-r border-gray-200"> {initCategories.map((one) => + className="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5"/>
-
+
{tasks?.map((one) => clickTask(one)}