Commit a081d73b by 展昭

tj

parent c89fa7a1
Showing with 3 additions and 2 deletions
...@@ -40,6 +40,7 @@ http.interceptors.response.use( ...@@ -40,6 +40,7 @@ http.interceptors.response.use(
}, },
(error) => { (error) => {
Toast.clear(); Toast.clear();
console.log('error=',error);
let info = {}; let info = {};
let { status } = error.response; let { status } = error.response;
info = { info = {
......
import axios from "axios"; import http from '../api/http.js'
import qs from "qs"; import qs from "qs";
import Vue from 'vue'; import Vue from 'vue';
import Vuex from 'vuex'; import Vuex from 'vuex';
...@@ -27,7 +27,7 @@ async function getToken(access_token, appid) { ...@@ -27,7 +27,7 @@ async function getToken(access_token, appid) {
}; };
let commonPms = GetCommonPms(); let commonPms = GetCommonPms();
let url = `${oidc_config.authority}/connect/token?${commonPms}`; let url = `${oidc_config.authority}/connect/token?${commonPms}`;
await axios await http
.post(url, qs.stringify(pms)) .post(url, qs.stringify(pms))
.then( .then(
res => { res => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment