Browse Source

低价预测授权模块

liutao 1 tuần trước cách đây
mục cha
commit
d11f6a7bd3

+ 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, // 请求超时时间
 });