skyouc
2025-07-14 4616cff3a14b81c4d488697f43fc7aad3cf3f10f
pages/login/logOut.vue
@@ -1,21 +1,21 @@
<template>
   <view></view>
</template>
<script>
   export default {
      mounted() {
         uni.showToast({
            title: '注销成功',
            duration: 1000
         })
         setTimeout(() => {
            uni.removeStorageSync('token');
            uni.reLaunch({
                url:"/pages/login/login"
            });
         }, 1000);
      },
   }
<template>
   <view></view>
</template>
<script>
   export default {
      mounted() {
         uni.showToast({
            title: '注销成功',
            duration: 1000
         })
         setTimeout(() => {
            uni.removeStorageSync('token');
            uni.reLaunch({
                url:"/pages/login/login"
            });
         }, 1000);
      },
   }
</script>