fix: 上传文件后客户端无法获取到的bug
This commit is contained in:
+3
-4
@@ -17,10 +17,6 @@ import koaMount from 'koa-mount';
|
|||||||
import ConfigHelper from './ConfigHelper.mjs';
|
import ConfigHelper from './ConfigHelper.mjs';
|
||||||
import DBHelper from './DBHelper.mjs';
|
import DBHelper from './DBHelper.mjs';
|
||||||
|
|
||||||
|
|
||||||
const __dirname = dirname(fileURLToPath(
|
|
||||||
import.meta.url));
|
|
||||||
|
|
||||||
ConfigHelper.initConfig();
|
ConfigHelper.initConfig();
|
||||||
|
|
||||||
(async () => await DBHelper.init())();
|
(async () => await DBHelper.init())();
|
||||||
@@ -33,6 +29,9 @@ export default CreateServer
|
|||||||
* port: 服务端口号
|
* port: 服务端口号
|
||||||
*/
|
*/
|
||||||
function CreateServer(port = 4873) {
|
function CreateServer(port = 4873) {
|
||||||
|
const __dirname = dirname(fileURLToPath(
|
||||||
|
import.meta.url));
|
||||||
|
|
||||||
const router = new getRouter();
|
const router = new getRouter();
|
||||||
const app = new Koa();
|
const app = new Koa();
|
||||||
app.use(koaBody());
|
app.use(koaBody());
|
||||||
|
|||||||
Reference in New Issue
Block a user