module-menu-vue 0.3.9 → 0.3.11

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,6 +1,6 @@
1
1
  {
2
2
  "name": "module-menu-vue",
3
- "version": "0.3.9",
3
+ "version": "0.3.11",
4
4
  "description": "城市大数据平台菜单--Vue版",
5
5
  "main": "/index.js",
6
6
  "scripts": {
@@ -27,8 +27,8 @@ export const checkToken = async (token) => {
27
27
  }});
28
28
  } else {
29
29
  const url = stash === 'GZW' ? `/data-platform/auth/oauth/check_token?token=${token}` : `/auth/oauth/check_token?token=${token}`
30
- Axios('get', url, '', {})
31
- .then().catch(() =>{
30
+ Axios(url, 'get')
31
+ .then().catch(() =>{
32
32
  this.$message.error({content:'用户凭证已过期,请重新登录', onClose: ()=>{
33
33
  localStorage.clear();
34
34
  sessionStorage.clear();
@@ -41,7 +41,7 @@ export const checkToken = async (token) => {
41
41
  // 获取登录地址信息
42
42
  export function getLoginUrl() {
43
43
  return Axios(
44
- 'get',
45
44
  '/admin-api/system/auth/getCodeUrl',
45
+ 'get',
46
46
  )
47
47
  }