提交 682bfac2 编写于 作者: H HL

规范signout命名

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