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

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

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