Anyon před 2 roky
rodič
revize
1f780e714c
3 změnil soubory, kde provedl 14 přidání a 18 odebrání
  1. 1 1
      app/admin/view/queue/index.html
  2. 1 1
      config/app.php
  3. 12 16
      config/view.php

+ 1 - 1
app/admin/view/queue/index.html

@@ -92,7 +92,7 @@
                         return d.html + '<br>执行结果:<span class="color-blue">' + (d.exec_desc || '<span class="color-desc">未获取到执行结果</span>') + '</span>';
                     }
                 },
-                {toolbar: '#toolbar', title: '操作面板', align: 'center', minWidth: 200, fixed: 'right'}
+                {toolbar: '#toolbar', title: '操作面板', align: 'center', minWidth: 210, fixed: 'right'}
             ]]
         });
     });

+ 1 - 1
config/app.php

@@ -42,7 +42,7 @@ return [
     // 显示错误的消息,仅产品模式有效
     'error_message'           => '页面错误!请稍后再试~',
     // 异常模板路径配置,仅开发模式有效
-    'exception_tmpl'          => app()->getAppPath() . 'admin/view/error.php',
+    'exception_tmpl'          => app()->getRootPath() . 'app/admin/view/error.php',
     // 异常状态模板配置,仅生产模式有效
     'http_exception_template' => [
         404 => app()->getRootPath() . 'public/static/theme/err/404.html',

+ 12 - 16
config/view.php

@@ -14,33 +14,29 @@
 // | github 代码仓库:https://github.com/zoujingli/ThinkAdmin
 // +----------------------------------------------------------------------
 
-use think\admin\service\SystemService;
-
 return [
     // 模板引擎类型使用 Think
-    'type'               => 'Think',
+    'type'           => 'Think',
     // 默认模板渲染规则 1.解析为小写+下划线 2.全部转换小写 3.保持操作方法
-    'auto_rule'          => 1,
+    'auto_rule'      => 1,
     // 模板目录名
-    'view_dir_name'      => 'view',
+    'view_dir_name'  => 'view',
     // 模板文件后缀
-    'view_suffix'        => 'html',
+    'view_suffix'    => 'html',
     // 模板文件名分隔符
-    'view_depr'          => DIRECTORY_SEPARATOR,
+    'view_depr'      => DIRECTORY_SEPARATOR,
     // 模板缓存配置
-    'tpl_cache'          => !app()->isDebug(),
+    'tpl_cache'      => !app()->isDebug(),
     // 模板引擎标签开始标记
-    'tpl_begin'          => '{',
+    'tpl_begin'      => '{',
     // 模板引擎标签结束标记
-    'tpl_end'            => '}',
+    'tpl_end'        => '}',
     // 标签库标签开始标记
-    'taglib_begin'       => '{',
+    'taglib_begin'   => '{',
     // 标签库标签结束标记
-    'taglib_end'         => '}',
+    'taglib_end'     => '}',
     // 去除HTML空格换行
-    'strip_space'        => true,
+    'strip_space'    => true,
     // 标签默认过滤输出方法
-    'default_filter'     => 'htmlentities=###,ENT_QUOTES',
-    // 定义模板替换字符串
-    'tpl_replace_string' => SystemService::instance()->uris(),
+    'default_filter' => 'htmlentities=###,ENT_QUOTES',
 ];