| | |
| | | import { endpoint, leaveWordslist, leaveWords } from "@/api/hfiveget/index.js"; |
| | | import { ImagePreview } from "vant"; |
| | | import store from "../../store/index"; |
| | | import { setToken, getToken } from "@/utils/auth.js"; |
| | | import { Loginto } from "@/api/hfiveget/index.js"; |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | lastscrollBottom: "" |
| | | }; |
| | | }, |
| | | |
| | | beforeCreate() { |
| | | Loginto(JSON.parse(localStorage.getItem("refreshdatabaocun"))).then(res => { |
| | | setToken(res.data.refresh_token); |
| | | }); |
| | | setInterval(() => { |
| | | Loginto(JSON.parse(localStorage.getItem("refreshdatabaocun"))).then( |
| | | res => { |
| | | setToken(res.data.refresh_token); |
| | | } |
| | | ); |
| | | }, 60 * 60 * 1000); |
| | | }, |
| | | computed: {}, |
| | | created() { |
| | | if (localStorage.getItem("tokensave") == null) { |