未验证 提交 4e7b56d6 编写于 作者: C cangdu 提交者: GitHub

Merge pull request #107 from perJust/master

规范signout命名
......@@ -10,7 +10,7 @@ export const login = data => fetch('/admin/login', data, 'POST');
* 退出
*/
export const signout = () => fetch('/admin/singout');
export const signout = () => fetch('/admin/signout');
/**
* 获取用户信息
......
......@@ -9,7 +9,7 @@
<img :src="baseImgPath + adminInfo.avatar" class="avator">
<el-dropdown-menu slot="dropdown">
<el-dropdown-item command="home">首页</el-dropdown-item>
<el-dropdown-item command="singout">退出</el-dropdown-item>
<el-dropdown-item command="signout">退出</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
......@@ -39,7 +39,7 @@
async handleCommand(command) {
if (command == 'home') {
this.$router.push('/manage');
}else if(command == 'singout'){
}else if(command == 'signout'){
const res = await signout()
if (res.status == 1) {
this.$message({
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册