修改公网访问minio资源

This commit is contained in:
2025-04-17 11:02:50 +08:00
parent 21293f9b9f
commit 2686740704
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -14,7 +14,8 @@ export type ApiResponse<T> = {
export type QueryParams = Record<string, string | number | boolean | undefined>;
// 获取 API 基础 URL
const API_BASE_URL = 'http://172.18.0.100:3000';
// const API_BASE_URL = 'http://172.18.0.100:3000';
const API_BASE_URL = 'http://nas.7bm.co:3000';
// const API_BASE_URL = 'http://172.16.0.119:9000/admin';
// export const API_BASE_URL = 'http://nas.7bm.co:3000';
+2 -1
View File
@@ -24,6 +24,7 @@ export default defineConfig({
server: {
host: '0.0.0.0',
port: 5173,
open: true
open: true,
allowedHosts: ['nas.7bm.co', 'localhost', '127.0.0.1'], // 允许的主机名列表
},
});