Browse Source

update 优化 涉及到用户密码的接口 均设置请求加密

疯狂的狮子Li 1 year ago
parent
commit
1690563ef0
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/api/login.ts

+ 2 - 1
src/api/login.ts

@@ -32,7 +32,8 @@ export function register(data: any) {
   return request({
   return request({
     url: '/auth/register',
     url: '/auth/register',
     headers: {
     headers: {
-      isToken: false
+      isToken: false,
+      isEncrypt: true
     },
     },
     method: 'post',
     method: 'post',
     data: data
     data: data