

```javascript
axios.interceptors.response.use(
  function (response) {
    if (
      response.status === 200 &&
      response.config.url.includes('/api/ebuilder/form/excellist/saveAllExcelList')
    ) {
      return new Promise(function (resolve, reject) {
        resolve({
          ...response,
        });
        setTimeout(()=>{
          if(window.ebdfListSdk && window.ebdfListSdk.getListStore().excelListStore){ //保存后触发切换到只读模式
            window.ebdfListSdk.getListStore().excelListStore.triggerEditAll()
          }
        },300)
      });
      // return response;
    }else {
      return response;
    }
  },
  function (error) {
    // console.log(error)
    // 响应状态码不是 2xx 时触发失败的回调，形参中的 error 是“失败的结果”
    return Promise.reject(error);
  },
);
```
