Browse Source

报错修改

yy 3 years ago
parent
commit
22e107cdcc
2 changed files with 1 additions and 3 deletions
  1. 1 1
      src/utils/request.js
  2. 0 2
      src/views/PersonalCenter/index.vue

+ 1 - 1
src/utils/request.js

15
      return new Promise((resolve, reject) => { axios.get(url, { params }).then(response => { resolve(response.data) }).catch(err => { reject(err) }) })
15
      return new Promise((resolve, reject) => { axios.get(url, { params }).then(response => { resolve(response.data) }).catch(err => { reject(err) }) })
16
  },
16
  },
17
  post(url, params = {}) {
17
  post(url, params = {}) {
18
      const urlObj = getRequest(url)
18
      let urlObj = getRequest(url)
19
      const host = url.indexOf("?") !== -1 ? url.substring(0, url.indexOf("?")) : url
19
      const host = url.indexOf("?") !== -1 ? url.substring(0, url.indexOf("?")) : url
20
      urlObj = Object.assign(urlObj, { uasLoginer: local.get("uasLoginer") });
20
      urlObj = Object.assign(urlObj, { uasLoginer: local.get("uasLoginer") });
21
      url = `${host}?${jsonToString(urlObj)}`
21
      url = `${host}?${jsonToString(urlObj)}`

+ 0 - 2
src/views/PersonalCenter/index.vue

97
            this.selected_index = this.$route.query.selected_index;
97
            this.selected_index = this.$route.query.selected_index;
98
        };
98
        };
99
        this.fetchToken();
99
        this.fetchToken();
100
        // this.dialog = !local.get("id");
101
        // this.form.id = local.get("id");
102
    },
100
    },
103
    methods: {
101
    methods: {
104
        // 获取考生个人资料
102
        // 获取考生个人资料