From 3de1b73ff5d9e12ab65ed85825339776a87ec98c Mon Sep 17 00:00:00 2001 From: hamster1963 <1410514192@qq.com> Date: Mon, 21 Oct 2024 17:26:31 +0800 Subject: [PATCH] test: use self-hosted runner --- .github/workflows/Deploy.yml | 2 +- README.md | 2 +- components/SignIn.tsx | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/Deploy.yml b/.github/workflows/Deploy.yml index 76be8c1..8b21807 100644 --- a/.github/workflows/Deploy.yml +++ b/.github/workflows/Deploy.yml @@ -12,7 +12,7 @@ env: jobs: build-and-push: name: Build and push Docker image - runs-on: ubuntu-latest + runs-on: self-hosted environment: Production steps: - name: Checkout code diff --git a/README.md b/README.md index 21528dc..f6cbeb1 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ | ------------------------------ | ------------------------ | ------------------------------------------------------------- | | NezhaBaseUrl | nezha 面板地址 | http://120.x.x.x:8008 | | NezhaAuth | nezha 面板 API Token | 5hAY3QX6Nl9B3Uxxxx26KMvOMyXS1Udi | -| SitePassword | 页面密码 | **默认**:无密码 | +| SitePassword | 页面密码 | **默认**:无密码 | | DefaultLocale | 面板默认显示语言 | **默认**:en [简中:zh 繁中:zh-t 英语:en 日语:ja] | | ForceShowAllServers | 是否强制显示所有服务器 | **默认**:false | | NEXT_PUBLIC_NezhaFetchInterval | 获取数据间隔(毫秒) | **默认**:2000 | diff --git a/components/SignIn.tsx b/components/SignIn.tsx index f93c43f..6c7a83b 100644 --- a/components/SignIn.tsx +++ b/components/SignIn.tsx @@ -36,12 +36,10 @@ export function SignIn() { }); if (res?.error) { console.log("login error"); - console.log(res); setErrorState(true); setSuccessState(false); } else { console.log("login success"); - console.log(res); setErrorState(false); setSuccessState(true); router.push("/"); @@ -75,7 +73,7 @@ export function SignIn() { />