module-menu-vue 0.0.16 → 0.0.17
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 -3
- package/src/components/User/UserInfo.vue +2 -1
- package/src/main.js +0 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "module-menu-vue",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
4
4
|
"description": "城市大数据平台菜单--Vue版",
|
|
5
5
|
"main": "/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -12,8 +12,7 @@
|
|
|
12
12
|
"axios": "^1.4.0",
|
|
13
13
|
"core-js": "^3.8.3",
|
|
14
14
|
"element-ui": "^2.15.13",
|
|
15
|
-
"vue": "^2.6.14"
|
|
16
|
-
"vue-axios": "^3.5.2"
|
|
15
|
+
"vue": "^2.6.14"
|
|
17
16
|
},
|
|
18
17
|
"devDependencies": {
|
|
19
18
|
"@babel/core": "^7.12.16",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
// import {logout} from './service.js'
|
|
34
34
|
import {userMenuIcon} from './constant.js'
|
|
35
35
|
import { getStore } from '../Util/userInfo.js';
|
|
36
|
+
import axios from 'axios'
|
|
36
37
|
export default {
|
|
37
38
|
name: 'UserInfo',
|
|
38
39
|
data () {
|
|
@@ -77,7 +78,7 @@ export default {
|
|
|
77
78
|
if (TENANT_ID) {
|
|
78
79
|
config.headers["TENANT-ID"] = TENANT_ID; // 租户ID
|
|
79
80
|
}
|
|
80
|
-
|
|
81
|
+
axios({
|
|
81
82
|
method: 'delete',
|
|
82
83
|
url: '/auth/token/logout',
|
|
83
84
|
...config
|
package/src/main.js
CHANGED
|
@@ -2,14 +2,10 @@ import Vue from 'vue'
|
|
|
2
2
|
import App from './App.vue'
|
|
3
3
|
import ElementUI from 'element-ui';
|
|
4
4
|
import 'element-ui/lib/theme-chalk/index.css';
|
|
5
|
-
import axios from 'axios'
|
|
6
|
-
import VueAxios from 'vue-axios'
|
|
7
5
|
|
|
8
6
|
|
|
9
7
|
Vue.config.productionTip = false
|
|
10
8
|
Vue.use(ElementUI);
|
|
11
|
-
window.axios = axios
|
|
12
|
-
Vue.use(VueAxios, axios)
|
|
13
9
|
|
|
14
10
|
|
|
15
11
|
new Vue({
|