2025-09-16
This commit is contained in:
@@ -1,12 +1,26 @@
|
||||
<template>
|
||||
<view class="my-container">
|
||||
|
||||
<u-button @click="loginOut">退出登录</u-button>
|
||||
|
||||
</view>
|
||||
<Tabbar></Tabbar>
|
||||
</template>
|
||||
|
||||
|
||||
<script setup lang="ts">
|
||||
|
||||
|
||||
const loginOut = () => {
|
||||
uni.removeStorageSync("token")
|
||||
uni.redirectTo({
|
||||
url: '/pages/login/login'
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
<style scoped lang="scss">
|
||||
.my-container {
|
||||
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user