浏览器报错TypeError: Cannot read properties of undefined (reading ‘cancelToken‘) 是因为在写请求拦截器时没有返回值,在请求拦截器里添加return config就解决了