| | |
| | | import headers from "./components/header.vue"; |
| | | import * as api from "@/axios/api"; |
| | | import { Notify } from "vant"; |
| | | import { mapMutations } from "vuex"; |
| | | import { mapActions, mapMutations } from "vuex"; |
| | | |
| | | export default { |
| | | name: "newLogin", |
| | |
| | | }, |
| | | |
| | | methods: { |
| | | ...mapActions(["setUseInfo"]), |
| | | ...mapMutations(["undataToken"]), |
| | | checkboxChange(e) { |
| | | window.localStorage.setItem("login_checked", e); |
| | |
| | | let data = await api.login(opts); |
| | | |
| | | if (data.status === 0) { |
| | | this.setUseInfo(); |
| | | if (this.checked) { |
| | | window.localStorage.setItem( |
| | | "login_admin", |