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