From 83de95d1d6f3c3ae97b890001f4e25cce23176db Mon Sep 17 00:00:00 2001 From: "honwhy.wang" Date: Sun, 14 Apr 2024 12:18:29 +0800 Subject: [PATCH] add logout --- entrypoints/options/index.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/entrypoints/options/index.vue b/entrypoints/options/index.vue index 253e3a8..1e8c6ae 100644 --- a/entrypoints/options/index.vue +++ b/entrypoints/options/index.vue @@ -29,6 +29,10 @@ async function setup() { nickname.value = name }) } +function logout() { + EventBus.emit(Events.UNAUTHED) +} + onMounted(() => { setup() }) @@ -69,7 +73,7 @@ onMounted(() => {