Commit a081d73b by 展昭

tj

parent c89fa7a1
Showing with 3 additions and 2 deletions
......@@ -40,6 +40,7 @@ http.interceptors.response.use(
},
(error) => {
Toast.clear();
console.log('error=',error);
let info = {};
let { status } = error.response;
info = {
......
import axios from "axios";
import http from '../api/http.js'
import qs from "qs";
import Vue from 'vue';
import Vuex from 'vuex';
......@@ -27,7 +27,7 @@ async function getToken(access_token, appid) {
};
let commonPms = GetCommonPms();
let url = `${oidc_config.authority}/connect/token?${commonPms}`;
await axios
await http
.post(url, qs.stringify(pms))
.then(
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