Browse Source

完成 登陆 前后端

weiximei 6 years ago
parent
commit
c20200b2e2
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      VUECODE/smart-property-manage/src/utils/request.js

+ 1
- 0
VUECODE/smart-property-manage/src/utils/request.js View File

14
   config => {
14
   config => {
15
     if (store.getters.token) {
15
     if (store.getters.token) {
16
       config.headers['X-Auth-Token'] = getToken() // 让每个请求携带自定义token 请根据实际情况自行修改
16
       config.headers['X-Auth-Token'] = getToken() // 让每个请求携带自定义token 请根据实际情况自行修改
17
+      config.headers['Login-Type'] = 'web'
17
     }
18
     }
18
     return config
19
     return config
19
   },
20
   },