Skip to content

Commit

Permalink
fix: update
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Jul 8, 2023
1 parent 49a187b commit 6a5edc1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { StyledButton } from '~/components/ui/button'
import { Input } from '~/components/ui/input/Input'
import { Routes } from '~/lib/route-builder'

export default () => {
export default function LoginPage() {
const [username, setUsername] = useState('')
const [password, setPassword] = useState('')
const router = useRouter()
Expand Down
2 changes: 1 addition & 1 deletion src/atoms/owner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const login = async (username?: string, password?: string) => {
const user = await apiClient.user.login(username, password).catch((err) => {
console.error(err)
toast('再试试哦', 'error')
return null
throw err
})
if (user) {
const token = user.token
Expand Down
2 changes: 1 addition & 1 deletion src/lib/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const apiClient = createClient(axiosAdaptor)(API_URL, {

export const $axios = axiosAdaptor.default as AxiosInstance

$axios.defaults.timeout = 3000
$axios.defaults.timeout = 8000

if (typeof window === 'undefined')
$axios.defaults.headers.common[
Expand Down

1 comment on commit 6a5edc1

@vercel
Copy link

@vercel vercel bot commented on 6a5edc1 Jul 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

shiro – ./

springtide.vercel.app
shiro-git-main-innei.vercel.app
innei.in
shiro-innei.vercel.app

Please sign in to comment.