perf: 已从localtunnel内部处理401,移除ajax-hook

This commit is contained in:
lblblong
2021-11-02 14:24:08 +08:00
parent cc0d6beb3e
commit c0936e2280
3 changed files with 1 additions and 21 deletions
-14
View File
@@ -1,4 +1,3 @@
// import { proxy } from 'ajax-hook'
import localtunnel from 'localtunnel'
import { makeAutoObservable } from 'mobx'
import { openAlert } from 'src/components/alert'
@@ -14,19 +13,6 @@ declare global {
}
}
// proxy({
// onRequest: (config, handler) => {
// if (config) config.headers['Bypass-Tunnel-Reminder'] = 'true'
// handler.next(config)
// },
// onError: (err, handler) => {
// handler.next(err)
// },
// onResponse: (response, handler) => {
// handler.next(response)
// },
// })
function getStorageID() {
return utools.getLocalId() + '_servers'
}