jiangping
2024-12-20 53b6400ec10c8ca61ccec91c82c358d2488eead8
h5/pages/staff/index.vue
@@ -53,7 +53,8 @@
      stagingHead,
      wxAuthorize,
      refreshToken,
      app_url
      app_url,
      delHkUserOpenid
   } from '@/api'
   export default {
      data() {
@@ -172,11 +173,25 @@
         loginOut() {
            logoutPost({
               isH5: 1
            }).then(res => {
               this.$store.commit('empty')
               setTimeout(() => {
                  window.location.href = app_url
               }, 300)
            }).then(res => {
               const userInfo = uni.getStorageSync('userInfo')
               const openId = uni.getStorageSync('openId')
               this.$store.commit('empty')
               if(openId){
                  delHkUserOpenid({
                     userName: userInfo.username,
                     openId
                  }).then(ress => {
                     setTimeout(() => {
                        window.location.href = app_url
                     }, 300)
                  })
               }else{
                  setTimeout(() => {
                     window.location.href = app_url
                  }, 300)
               }
            })
         },
         getTaskInfo() {