-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 优化聊天界面 * 更新依赖 * 修改base url * 优化接口 * 优化登录页
- Loading branch information
Showing
8 changed files
with
138 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
export default function handler(request, response) { | ||
// 用户登录模拟 | ||
if (request.method === 'POST') { | ||
const { username, password } = request.body; | ||
if (username === 'admin' && password === '123456') { | ||
response.status(200).json({ | ||
code: 200, | ||
data: { | ||
token: 'admin', | ||
username: 'admin', | ||
avatar: 'https://admin.leelaa.cn/pwa-1024x1024.png', | ||
roles: ['admin'], | ||
}, | ||
message: '登录成功', | ||
}); | ||
} else { | ||
response.status(200).json({ | ||
code: 500, | ||
message: '账号或密码错误', | ||
}); | ||
} | ||
}else { | ||
response.status(200).json({ | ||
code: 500, | ||
message: '请求方法错误', | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5e92745
There was a problem hiding this comment.
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:
leelaa-admin – ./
leelaa-admin-git-master-leelaas-projects.vercel.app
leelaa-admin-leelaas-projects.vercel.app
admin.leelaa.cn
leelaa-admin.vercel.app