无人机管理后台前端(已迁走)
张含笑
2025-05-13 820fe5e39c1027e0373b9d24bbfd9d7fc86722d1
feat:请求头添加areaCode
2 files modified
16 ■■■■ changed files
src/axios.js 4 ●●●● patch | view | raw | blame | history
src/views/wel/index.vue 12 ●●●●● patch | view | raw | blame | history
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;
src/views/wel/index.vue
@@ -48,9 +48,7 @@
                          <!-- <div :style="{ color: item.color }" class="status-value">
                            {{ item.value }}<span>个</span>
                          </div> -->
                           <div  class="status-value">
                            {{ item.value }}<span>个</span>
                          </div>
                          <div class="status-value">{{ item.value }}<span>个</span></div>
                          <div class="ratio">
                            占比
                            <span :style="{ color: item.color }"
@@ -375,7 +373,6 @@
      name: '单位:万套',
      nameTextStyle: {
        color: '#383838',
      },
      min: 1,
      logBase: 3,
@@ -424,7 +421,7 @@
      axisLabel: {
        color: '#383838',  // 直接配置颜色
      },
    }
      },
  ],
    series: [
      {
@@ -556,8 +553,7 @@
          }
          .card-item.active {
            color: #1441ff;
            border: 1px solid #1C5CFF;
            border: 1px solid #1c5cff;
          }
        }
      }
@@ -714,7 +710,7 @@
                    align-items: center;
                    font-weight: 400;
font-size: 14px;
color: #7C8091;
                    color: #7c8091;
                  }
                  .flydata {
                    margin-top: 15px;