Browse Source

fix:恢复请求url路径

liujing 9 months ago
parent
commit
b34985777c
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/api/user.js
  2. 1 1
      src/api/ws.js

+ 1 - 1
src/api/user.js

@@ -20,7 +20,7 @@ export function logout() {
 // refreshtoken 刷新token
 export function refreshtoken(data) {
   return request({
-    url: '/api/refreshtoken',
+    url: '/refreshtoken',
     method: 'post',
     data
   })

+ 1 - 1
src/api/ws.js

@@ -3,7 +3,7 @@ import request from '@/utils/request'
 // 查询SysJob列表
 export function unWsLogout(id, group) {
   return request({
-    url: '/api/wslogout/' + id + '/' + group,
+    url: '/wslogout/' + id + '/' + group,
     method: 'get'
   })
 }