Skip to content

Commit 682bfac

Browse files
committed
规范signout命名
1 parent 4dc99ea commit 682bfac

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/api/getData.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const login = data => fetch('/admin/login', data, 'POST');
1010
* 退出
1111
*/
1212

13-
export const signout = () => fetch('/admin/singout');
13+
export const signout = () => fetch('/admin/signout');
1414

1515
/**
1616
* 获取用户信息

src/components/headTop.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<img :src="baseImgPath + adminInfo.avatar" class="avator">
1010
<el-dropdown-menu slot="dropdown">
1111
<el-dropdown-item command="home">首页</el-dropdown-item>
12-
<el-dropdown-item command="singout">退出</el-dropdown-item>
12+
<el-dropdown-item command="signout">退出</el-dropdown-item>
1313
</el-dropdown-menu>
1414
</el-dropdown>
1515
</div>
@@ -39,7 +39,7 @@
3939
async handleCommand(command) {
4040
if (command == 'home') {
4141
this.$router.push('/manage');
42-
}else if(command == 'singout'){
42+
}else if(command == 'signout'){
4343
const res = await signout()
4444
if (res.status == 1) {
4545
this.$message({

0 commit comments

Comments
 (0)