module-menu 0.1.24 → 0.1.26
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 +2 -2
- package/src/.umi/.cache/babel-loader/0baa5e2ab67778d3566fc30b3066389d.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/128aa5adccc8863930c7650ac429aa00.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/13f028645d8086993d6b8e01ec8086a0.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/1d11158dadb83adaae99ccda4b4d1c9c.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/1d77034a1a6c55f06f6f79299d14ef9e.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/2337c2bb0d1322b5b9efda1122f0ec8b.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/5b5b15670673b14da779c72ff08171b0.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/6ec97028f7f0dbf5d2c6bb5a95085da7.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/8e0e0787a6635d23580aabba3deae6c6.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/93ccbcd6d515781672001ce69add922d.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/9800f4c48147118fc91c30ce1cebf0ef.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/c2e89db94faf3bf3d42fadea590621c5.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/cc41f767e8b2397ab81373b7b31d5121.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/d63e70a818fac501ae68b881b8780832.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/f088a7033f4d02ce70993c05181fa429.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/f57634317b67618da14290fc4bf254b6.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/f9d931cea477056032040d7888d9e156.json.gz +0 -0
- package/src/pages/ModuleUser/index.jsx +3 -3
- package/src/pages/util/axios.js +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "module-menu",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.26",
|
|
4
4
|
"description": "城市大数据平台公共头部及尾部",
|
|
5
5
|
"main": "src/pages/index.jsx",
|
|
6
6
|
"scripts": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@ant-design/pro-layout": "^6.5.0",
|
|
29
29
|
"antd": "^4.17.0",
|
|
30
|
-
"axios": "^
|
|
30
|
+
"axios": "^0.27.2",
|
|
31
31
|
"react": "^17.0.0",
|
|
32
32
|
"react-dom": "^17.0.0",
|
|
33
33
|
"umi": "^3.5.0"
|
|
@@ -25,9 +25,9 @@ const ModuleUser = () => {
|
|
|
25
25
|
const logout = () => {
|
|
26
26
|
Axios('delete','/auth/token/logout', '', {} )
|
|
27
27
|
.then(() => {
|
|
28
|
-
|
|
29
|
-
localStorage.clear();
|
|
30
|
-
sessionStorage.clear();
|
|
28
|
+
console.log('退出登录接口调用成功')
|
|
29
|
+
// localStorage.clear();
|
|
30
|
+
// sessionStorage.clear();
|
|
31
31
|
window.location.href = DEFAULT_LOGOUT_URL;
|
|
32
32
|
})
|
|
33
33
|
.catch((error) => {
|
package/src/pages/util/axios.js
CHANGED
|
@@ -4,7 +4,7 @@ import baseCof from './config';
|
|
|
4
4
|
import getStore from './userInfo';
|
|
5
5
|
import { checkToken} from './permessionUtils';
|
|
6
6
|
|
|
7
|
-
let tokenValue='
|
|
7
|
+
let tokenValue='7f288e2a-deb0-44fe-af72-7345ac8a6784';
|
|
8
8
|
|
|
9
9
|
axios.interceptors.response.use(
|
|
10
10
|
(response) => {
|
|
@@ -21,6 +21,7 @@ axios.interceptors.response.use(
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
(error) => {
|
|
24
|
+
console.log('error', error)
|
|
24
25
|
if (error.response) {
|
|
25
26
|
if (error.response.status === 401) {
|
|
26
27
|
if (process.env.NODE_ENV === 'production') {
|
|
@@ -80,6 +81,7 @@ function Axios(method, api, params, map) {
|
|
|
80
81
|
params: params,
|
|
81
82
|
...map,
|
|
82
83
|
};
|
|
84
|
+
console.log('httpDefult', httpDefult)
|
|
83
85
|
} else if (api === '/admin/social/logoutUri') {
|
|
84
86
|
httpDefult = {
|
|
85
87
|
method: method,
|