Skip to content

Commit

Permalink
add logout
Browse files Browse the repository at this point in the history
  • Loading branch information
honwhy committed Apr 14, 2024
1 parent 0551788 commit 83de95d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion entrypoints/options/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ async function setup() {
nickname.value = name
})
}
function logout() {
EventBus.emit(Events.UNAUTHED)
}
onMounted(() => {
setup()
})
Expand Down Expand Up @@ -69,7 +73,7 @@ onMounted(() => {
<template #dropdown>
<el-dropdown-menu>
<el-dropdown-item style="min-width: 100px;">
<span>退出</span>
<span @click="logout">退出</span>
</el-dropdown-item>
</el-dropdown-menu>
</template>
Expand Down

0 comments on commit 83de95d

Please sign in to comment.