소스 검색

低价预测授权模块

liutao 1 주 전
부모
커밋
d11f6a7bd3
2개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 0
      CYZZ-master/cyzz/web_cyzz/src/components/HomeHeader.vue
  2. 2 2
      CYZZ-master/cyzz/web_cyzz/src/utils/http.ts

+ 4 - 0
CYZZ-master/cyzz/web_cyzz/src/components/HomeHeader.vue

@@ -6,6 +6,9 @@
         <div class="title">地价预测工具</div>
       </div>
     </div>
+    <div class="right" v-if="syUser && syUser['Name']">
+      {{syUser['Name']}}
+    </div>
   </div>
 </template>
 <script setup>
@@ -66,6 +69,7 @@ const syUser = computed(() => store.user.syUser);
   }
 
   .right {
+    margin-right: 60px;
     height: 100%;
     width: 180px;
     color: #fff;

+ 2 - 2
CYZZ-master/cyzz/web_cyzz/src/utils/http.ts

@@ -1,10 +1,10 @@
 import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse } from "axios";
 
 const windowConfig = (window as any).AppGlobalConfig;
-
+const getBaseUrl = () => '/djycserver';
 // 创建 axios 实例
 const http: AxiosInstance = axios.create({
-  baseURL: windowConfig.server,
+  baseURL: getBaseUrl(),
   timeout: 30000, // 请求超时时间
 });