Browse Source

登录/验证码请求headers不设置token

RuoYi 3 years ago
parent
commit
3ae5ec92a5
1 changed files with 6 additions and 0 deletions
  1. 6 0
      ruoyi-ui/src/api/login.js

+ 6 - 0
ruoyi-ui/src/api/login.js

@@ -10,6 +10,9 @@ export function login(username, password, code, uuid) {
   }
   return request({
     url: '/login',
+    headers: {
+      isToken: false
+    },
     method: 'post',
     data: data
   })
@@ -47,6 +50,9 @@ export function logout() {
 export function getCodeImg() {
   return request({
     url: '/captchaImage',
+    headers: {
+      isToken: false
+    },
     method: 'get',
     timeout: 20000
   })