| | |
| | | import { Button, ConfigProvider, Popup } from "@nutui/nutui-react-taro"; |
| | | import LineUpCard from "./components/LineUpCard"; |
| | | import { Order, Undo } from "@nutui/icons-react-taro"; |
| | | import { setUser,setToken } from "@/store/actions"; |
| | | import store from "@/store/index"; |
| | | import Logo from "@/assets/logo@2x.png"; |
| | | import { getToken } from "@/utils/storage"; |
| | | import { request } from "@/requests/request"; |
| | |
| | | }; |
| | | }); |
| | | |
| | | const logOut = () => { |
| | | store.dispatch(setUser({})); |
| | | store.dispatch(setToken('')); |
| | | Taro.clearStorageSync(); |
| | | Taro.reLaunch({ |
| | | url: "/pages/index/index", |
| | | }); |
| | | }; |
| | | |
| | | return ( |
| | | <View className="page-index"> |
| | | <View className="page-index__header"> |
| | |
| | | }} |
| | | userInfo={userInfo} |
| | | /> |
| | | <View className="page-index__header--logOut"> |
| | | <View className="record-button" |
| | | style={{ |
| | | backgroundColor: "#fff", |
| | | color: "#5a715a", |
| | | width: "100rpx", |
| | | }} |
| | | onClick={logOut} |
| | | >退出登录</View> |
| | | </View> |
| | | </View> |
| | | )} |
| | | </View> |