yearning
18 小时以前 63fea2990e587837ed3dde2b9ac8f2b4ef729672
src/views/h5/login/bind.vue
@@ -34,6 +34,7 @@
import { tokenUtils } from '@/utils/axios.js';
import { useLoginStore } from '@/stores/login.js'
import { storeToRefs } from 'pinia';
import cityItems from '@/assets/json/cityItems.json'
export default {
  setup() {
    const { lastRouteInfo } = storeToRefs(useLoginStore())
@@ -106,12 +107,12 @@
      }
    },
    login() {
      const data = {
      let data = {
        mobile: this.form.mobile,
        code: this.form.code,
        state: this.state,
        openid: this.openid,
        wxCode: this.wxCode
        wxCode: this.wxCode,
      }
      this.loginLoading = true
      this.$axios.post('/system/auth/staff/checkin/bind', data).then(async res => {
@@ -119,7 +120,7 @@
          const resData = res.data.data
          tokenUtils.setTokens(resData.accessToken, resData.refreshToken)
          this.$message.success('绑定成功')
          const path = localStorage.getItem('verify_url')
          const path = localStorage.getItem('_enterUrl')
          if (path) {
            this.$router.replace(path)
          }