添加登录功能
This commit is contained in:
1 parent
20e9f4940e
commit
530e54a596
17 files changed
+632
-160
No files matched your search
@@ -0,0 +1,18 @@
|
||||
<template>
|
||||
<n-button @click="signOut" type="error">
|
||||
退出登录
|
||||
</n-button>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
|
||||
import { NCheckbox, NInputGroupLabel, NInputGroup, NP, NFlex, NDataTable, NButton, NInput, NCard } from 'naive-ui'
|
||||
|
||||
function signOut(){
|
||||
const items = ['token']
|
||||
items.forEach(v=>{
|
||||
localStorage.removeItem(v)
|
||||
})
|
||||
location.reload();
|
||||
}
|
||||
</script>
|
||||
Reference in new issue
Block a user