loulijun2021
2023-06-13 3784cc5b9f62d0397c3036126c014fe4070e8a7d
src/views/login/index.vue
@@ -221,6 +221,10 @@
            if (getCookie('code') === '302') {
              this.dialogVisible = true
            } else {
              // console.log(typeof getCookie('description'))
              // console.log(getCookie('description') === '')
              // this.$store.state.settings.orgType = getCookie('description')// 组织类型
              // console.log(this.$store.state.settings.orgType, 88)
              this.$router.push({ path: this.redirect || '/' })
            }
            this.loading = false
@@ -241,6 +245,8 @@
      removeCookie('usertype')
      removeCookie('userid')
      removeCookie('code')
      removeCookie('stu_torgcode')
      removeCookie('description')
      this.dialogVisible = false
    },
    async dialogVisibleConfirm() {
@@ -248,12 +254,14 @@
      const username = getCookie('admin')
      const usertype = getCookie('usertype')
      const userid = getCookie('userid')
      const stu_torgcode = getCookie('stu_torgcode')
      const data = {
        usercode,
        username,
        usertype,
        userid,
        rid: ''
        rid: '',
        stu_torgcode
      }
      const res = await ForcedOffline(data)
      if (res.code === '200') {