vue请求接口时报警告Provisional headers are shown
是因为接口请求缓存导致的直接的办法可以在const service = axios.create({baseURL: process.env.VUE_APP_BASE_API,//请求路径timeout: 10000 ,// request timeoutheaders:{'Cache-Control': 'no-cache' //重点清除接口的缓存}})...
·
是因为接口请求缓存导致的直接的办法可以在
const service = axios.create({
baseURL: process.env.VUE_APP_BASE_API,//请求路径
timeout: 10000 ,// request timeout
headers:{
'Cache-Control': 'no-cache' //重点清除接口的缓存
}
})
更多推荐



所有评论(0)