king
2025-03-10 a259b444c4438577ee3363e0764b63e828a3bae2
src/api/index.js
@@ -48,6 +48,7 @@
        okText: '知道了',
        onOk: () => {
          window.GLOB.$error = false
          if (!/#\/login/.test(window.location.href)) {
            sessionStorage.clear()
            if (!!(window.history && window.history.pushState)) {
@@ -127,7 +128,26 @@
  }
  /**
   * @description 微信业务请求 原接口 'wxpay/getaccesstoken'
   * @description 使用dostar接口,跳过验证
   * @param {Object} param 查询及提交参数
   */
  loginAndRedirect (param) {
    let url = ''
    if (process.env.NODE_ENV === 'production') {
      url = document.location.origin + '/Home/LoginAndRedirect'
    } else {
      url = '/Home/LoginAndRedirect'
    }
    return axios({
      url: url,
      method: 'post',
      data: qs.stringify(param)
    })
  }
  /**
   * @description 微信业务请求 wxpay/getaccesstoken
   */
  // wxAccessToken (appId, domain = '') {
  //   let _url = domain || window.GLOB.baseurl