module-menu-vue 0.0.39 → 0.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
|
-
// import baseCof from './config';
|
|
3
2
|
import getStore from './userInfo';
|
|
4
3
|
import { checkToken } from './permessionUtils';
|
|
5
4
|
let tokenValue = '574536b1-5832-417b-b909-82e204679d67';
|
|
@@ -72,16 +71,9 @@ axios.interceptors.request.use(
|
|
|
72
71
|
},
|
|
73
72
|
);
|
|
74
73
|
|
|
75
|
-
function Axios(
|
|
76
|
-
let httpDefult;
|
|
77
|
-
// 退出登录
|
|
78
|
-
httpDefult = {
|
|
79
|
-
method: method,
|
|
80
|
-
url: url,
|
|
81
|
-
};
|
|
82
|
-
console.log('httpDefult', httpDefult)
|
|
74
|
+
function Axios(url) {
|
|
83
75
|
return new Promise((resolve, reject) => {
|
|
84
|
-
axios(
|
|
76
|
+
axios.delete(url)
|
|
85
77
|
.then((res) => {
|
|
86
78
|
console.log('res', res)
|
|
87
79
|
resolve(res);
|