Commit accb5fbe authored by TZW's avatar TZW

401

parent 55f46324
...@@ -77,9 +77,9 @@ request.interceptors.request.use(async (url, options) => { ...@@ -77,9 +77,9 @@ request.interceptors.request.use(async (url, options) => {
// response拦截器, 处理response // response拦截器, 处理response
request.interceptors.response.use(async (response, options) => { request.interceptors.response.use(async (response, options) => {
// if (response?.status == '401') { if (response?.status == '401') {
// window.location.href = '/'; window.location.href = '/';
// } }
if (options.responseType == 'blob') { if (options.responseType == 'blob') {
const data = await response.clone().blob(); const data = await response.clone().blob();
let blobUrl = window.URL.createObjectURL(data); let blobUrl = window.URL.createObjectURL(data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment