| | |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import { getStore } from "@/util/store" |
| | | import { setTheme } from "@/util/util" |
| | | import { resetRouter } from '@/router/router' |
| | | import { mapGetters, mapState } from "vuex" |
| | |
| | | name: "top", |
| | | data () { |
| | | return { |
| | | webType: getStore({ name: "webType" }), |
| | | searchShow: false, |
| | | userBox: false, |
| | | userForm: { |
| | |
| | | }).then(() => { |
| | | this.$store.dispatch("LogOut").then(() => { |
| | | resetRouter() |
| | | |
| | | |
| | | if (this.webType == 'default') { |
| | | this.$router.push({ path: "/login" }) |
| | | } else { |
| | | this.$router.push({ path: "/tenementLogin" }) |
| | | } |
| | | }) |
| | | }) |
| | | } |