From 09f5baff0d14f593b52920b9b76d46fedfb753a8 Mon Sep 17 00:00:00 2001
From: master <master@163.com>
Date: 星期三, 20 四月 2022 16:53:46 +0800
Subject: [PATCH] 配置文件上传组件
---
src/config/config.default.ts | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/config/config.default.ts b/src/config/config.default.ts
index 94bd5cc..c9c4d15 100644
--- a/src/config/config.default.ts
+++ b/src/config/config.default.ts
@@ -1,6 +1,7 @@
import { EggAppConfig, EggAppInfo, PowerPartial } from 'egg';
import { CoolConfig } from '@cool-midway/core';
import * as path from 'path';
+import { CoolFileConfig, MODETYPE } from '@cool-midway/file';
export type DefaultConfig = PowerPartial<EggAppConfig>;
@@ -46,7 +47,7 @@
enable: false,
ignoreJSON: true,
},
- domainWhiteList: ['http://localhost:9100', 'http://192.168.1.4:9100'],
+ domainWhiteList: ['http://localhost:9100', 'http://192.168.1.4:9100', 'http://112.74.77.127:9100'],
};
config.cors = {
@@ -73,7 +74,8 @@
// 鏂囦欢涓婁紶
file: {
// 鏂囦欢璺緞鍓嶇紑 鏈湴涓婁紶妯″紡涓� 鏈夋晥
- domain: 'http://127.0.0.1:8001',
+ // domain: 'http://127.0.0.1:8001',
+ domain: 'http://112.74.77.127:9100/hn',
},
} as CoolConfig;
--
Gitblit v1.9.1