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>