perf: 已从localtunnel内部处理401,移除ajax-hook
This commit is contained in:
@@ -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'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user