From 800861221f8871d2ed52b6f367c99d41e6b161af Mon Sep 17 00:00:00 2001 From: zhontai <361243234@qq.com> Date: Fri, 29 Dec 2023 18:06:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E6=97=A0=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E8=B0=83=E5=BA=A6=E4=BB=A3=E7=A0=81=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../content/src/hosts/MyApp.Host/Configs/appconfig.json | 6 +++++- templates/admin/content/src/hosts/MyApp.Host/Program.cs | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) 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;