Ver código fonte

完成 登陆 前后端

weiximei 6 anos atrás
pai
commit
c20200b2e2
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1
    0
      VUECODE/smart-property-manage/src/utils/request.js

+ 1
- 0
VUECODE/smart-property-manage/src/utils/request.js Ver arquivo

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