Commit d06cf6314df9c2ae454e525e690581f8293e8c03
1 parent
0bb1a617
兼容长水登录错误
Showing
1 changed file
with
2 additions
and
2 deletions
src/api/axios.js
| @@ -6,7 +6,7 @@ import store from "@/store"; | @@ -6,7 +6,7 @@ import store from "@/store"; | ||
| 6 | import conf from "../config/index"; // 路径配置 | 6 | import conf from "../config/index"; // 路径配置 | 
| 7 | import { getURLParams } from "@/utils"; | 7 | import { getURLParams } from "@/utils"; | 
| 8 | 8 | ||
| 9 | -let code = getURLParams("code") || localStorage.getItem("csCode") || ""; | 9 | +let code = getURLParams("code") || getURLParams("dockkey") || localStorage.getItem("csCode") || ""; | 
| 10 | 10 | ||
| 11 | 11 | ||
| 12 | // axios默认配置 | 12 | // axios默认配置 | 
| @@ -55,7 +55,7 @@ service.interceptors.response.use( | @@ -55,7 +55,7 @@ service.interceptors.response.use( | ||
| 55 | } | 55 | } | 
| 56 | } | 56 | } | 
| 57 | // } | 57 | // } | 
| 58 | - } | 58 | + } | 
| 59 | } | 59 | } | 
| 60 | return Promise.resolve(res); | 60 | return Promise.resolve(res); | 
| 61 | }, | 61 | }, | 
