jiangping
2024-06-03 ee010e7160f0a4dee5e0c2fde55d488f4f2f9788
h5/App.vue
@@ -1,5 +1,5 @@
<script>
import { wxAuthorize } from '@/api'
import { wxAuthorize, refreshToken } from '@/api'
export default {
   onLaunch: function () {
      var that = this
@@ -27,6 +27,15 @@
            })
         }
      }
      // 刷新token
      const token = uni.getStorageSync('token')
      if(token){
         // refreshToken().then(res => {
         //    if(res.code && res.code === 200){
         //       this.$store.commit('setToken', res.data)
         //    }
         // })
      }
   },
   onShow: function () {
      console.log('App Show')