loulijun2021
2022-06-21 b9251363e9d13b0fb88edfe1d59880d135007572
src/layout/components/Navbar.vue
@@ -76,10 +76,12 @@
      const usercode = getCookie('navTabId')
      const username = getCookie('admin')
      const usertype = getCookie('usertype')
      const userid = getCookie('userid')
      const data = {
        usercode,
        username,
        usertype
        usertype,
        userid
      }
      const res = await logout(data)
      if (res.code === '200') {
@@ -88,6 +90,7 @@
        removeCookie('admin')
        removeCookie('navTabId')
        removeCookie('usertype')
        removeCookie('userid')
        this.$message.success('退出成功!')
        this.$router.push(`/login?redirect=${this.$route.fullPath}`)
        // this.$router.push(`/login?redirect=${this.$route.fullPath}`)