vue問題記錄十:如何設置公共的請求參數

//http request攔截器 axios.interceptors.request.use( config =>{ if(cityId){//設置公共的請求參數 let test = config.data; if(test){ config.data['city_id']= cityId; } } return config; }, err =>
相關文章
相關標籤/搜索