From 5dfd83bd540c2e43af2e0449c246c79a22cb1296 Mon Sep 17 00:00:00 2001
From: heshaofeng <heshaofeng@hnkhzn.com>
Date: 星期二, 20 一月 2026 16:22:56 +0800
Subject: [PATCH] 1
---
项目代码/Dashboard/src/utils/http.js | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/Dashboard/src/utils/http.js" "b/\351\241\271\347\233\256\344\273\243\347\240\201/Dashboard/src/utils/http.js"
index c6118ff..b6571b4 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/Dashboard/src/utils/http.js"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/Dashboard/src/utils/http.js"
@@ -3,7 +3,7 @@
// 鍒涘缓axios瀹炰緥
const request = axios.create({
- baseURL: '/api',
+ baseURL: 'http://localhost:9291',
timeout: 30000,
headers: {
'Content-Type': 'application/json;charset=UTF-8'
@@ -34,8 +34,7 @@
// 鏍规嵁瀹為檯鍚庣杩斿洖鏍煎紡璋冩暣
// 鍋囪鍚庣杩斿洖鏍煎紡涓� { code: 200, data: {}, message: '' }
if (res.code !== undefined && res.code !== 200) {
- ElMessage.error(res.message || '璇锋眰澶辫触')
- return Promise.reject(new Error(res.message || '璇锋眰澶辫触'))
+
}
return res
--
Gitblit v1.9.3