From 9898e690cfa10fb8091af3b43288f68c0af6712b Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Thu, 28 Jul 2022 09:52:38 +0800 Subject: [PATCH] require('./routes').entry --- web/config.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/web/config.js b/web/config.js index e427ddc6..d43137f7 100644 --- a/web/config.js +++ b/web/config.js @@ -44,7 +44,13 @@ const product = { }, { entry: require('./client').entry,// 静态信息 opts: {} - }], + }, { + entry: require('./routes').entry, + opts: { + apiUrl: FS_UNIAPP_API, + staticRoot: './client', + } + },], logger: { level: 'debug', json: false,