无人机管理后台前端(已迁走)
shuishen
2025-05-19 2dfc8dc4bcd3d3cd4aed1b6054e073e140eba9c8
src/axios.js
@@ -5,6 +5,7 @@
 * isSerialize是否开启form表单提交
 * isToken是否需要token
 */
import axios from 'axios';
import store from '@/store/';
import router from '@/router/';
@@ -62,6 +63,9 @@
         config.url = baseUrl + config.url;
      }
      //安全请求header
      console.log('selectedAreaCode',store.state.user.userInfo.detail.areaCode);
      config.headers['areaCode'] = store.state.user.userInfo.detail.areaCode
      config.headers['Blade-Requested-With'] = 'BladeHttpRequest';
      //headers判断是否需要
      const authorization = config.authorization === false;