shuishen
2024-01-19 0002833890c8b20f1ef9231ae4a7f36e2a55df5e
退出登录跳转地址完善
1 files modified
8 ■■■■■ changed files
src/page/index/top/index.vue 8 ●●●●● patch | view | raw | blame | history
src/page/index/top/index.vue
@@ -94,6 +94,7 @@
    </div>
</template>
<script>
import { getStore } from "@/util/store"
import { setTheme } from "@/util/util"
import { resetRouter } from '@/router/router'
import { mapGetters, mapState } from "vuex"
@@ -121,6 +122,7 @@
    name: "top",
    data () {
        return {
            webType: getStore({ name: "webType" }),
            searchShow: false,
            userBox: false,
            userForm: {
@@ -242,7 +244,13 @@
            }).then(() => {
                this.$store.dispatch("LogOut").then(() => {
                    resetRouter()
                    if (this.webType == 'default') {
                    this.$router.push({ path: "/login" })
                    } else {
                        this.$router.push({ path: "/tenementLogin" })
                    }
                })
            })
        }