diff --git a/templates/admin/content/src/hosts/MyApp.Host/Configs/appconfig.json b/templates/admin/content/src/hosts/MyApp.Host/Configs/appconfig.json index 7a744abc..55488243 100644 --- a/templates/admin/content/src/hosts/MyApp.Host/Configs/appconfig.json +++ b/templates/admin/content/src/hosts/MyApp.Host/Configs/appconfig.json @@ -138,7 +138,11 @@ //是否开启任务调度管理界面 "TaskSchedulerUI": { //启用 - "enable": true, + ////#if (NoTaskScheduler) + //"enable": false, + ////#else + //"enable": true, + ////#endif //访问路径 "path": "/task" } diff --git a/templates/admin/content/src/hosts/MyApp.Host/Program.cs b/templates/admin/content/src/hosts/MyApp.Host/Program.cs index c9e0e72d..57ec1209 100644 --- a/templates/admin/content/src/hosts/MyApp.Host/Program.cs +++ b/templates/admin/content/src/hosts/MyApp.Host/Program.cs @@ -26,8 +26,8 @@ #endif using AdminDbkeys = ZhonTai.Admin.Core.Consts.DbKeys; using AdminSubscribeNames = ZhonTai.Admin.Core.Consts.SubscribeNames; -using ZhonTai.Admin.Core.Db; #if (!NoTaskScheduler) +using ZhonTai.Admin.Core.Db; using ZhonTai.Admin.Domain; using System; using Cronos;