tangning 1 день назад
Родитель
Сommit
8094b79d60
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/api/setup.ts

+ 1 - 1
src/api/setup.ts

@@ -132,7 +132,7 @@ export const axiosFactory = () => {
       }
 
       if (!matchURL(axiosConfig.unTokenSet, config)) {
-        if (!axiosConfig.token) {
+        if (!axiosConfig.token && !config.headers?.sharePassword) {
           if (!offline && !matchURL(axiosConfig.unReqErrorSet, config)) {
             const error = new Error('缺少token')
             callErrorHandler('req', error, config)