修复框架缓存bug

This commit is contained in:
15090180611 2025-01-17 17:50:41 +08:00
parent 74c5f0aebf
commit b21365b205
4 changed files with 8 additions and 4 deletions

View File

@ -3,7 +3,7 @@
<div class="form-group"> <div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Help_cate_ids')}:</label> <label class="control-label col-xs-12 col-sm-2">{:__('Help_cate_ids')}:</label>
<div class="col-xs-12 col-sm-8"> <div class="col-xs-12 col-sm-8">
<input id="c-help_cate_ids" data-rule="required" data-source="school/help/cate/index" data-max-select-limit="3" data-multiple="true" data-params='{"custom[status]":"1","isTree":1}' class="form-control selectpage" name="row[help_cate_ids]" type="text" value="{$q_help_cate_ids}"> <input id="c-help_cate_ids" data-rule="required" data-source="school/help/cate/index" data-params='{"custom[status]":"1","isTree":1}' class="form-control selectpage" name="row[help_cate_ids]" type="text" value="{$q_help_cate_ids}">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">

View File

@ -3,7 +3,7 @@
<div class="form-group"> <div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Help_cate_ids')}:</label> <label class="control-label col-xs-12 col-sm-2">{:__('Help_cate_ids')}:</label>
<div class="col-xs-12 col-sm-8"> <div class="col-xs-12 col-sm-8">
<input id="c-help_cate_ids" data-rule="required" data-source="school/help/cate/index" data-max-select-limit="3" data-multiple="true" data-params='{"custom[status]":"1","isTree":1}' class="form-control selectpage" name="row[help_cate_ids]" type="text" value="{$row.help_cate_ids|htmlentities}"> <input id="c-help_cate_ids" data-rule="required" data-source="school/help/cate/index" data-params='{"custom[status]":"1","isTree":1}' class="form-control selectpage" name="row[help_cate_ids]" type="text" value="{$row.help_cate_ids|htmlentities}">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">

View File

@ -18,7 +18,7 @@ return [
// 应用命名空间 // 应用命名空间
'app_namespace' => 'app', 'app_namespace' => 'app',
// 应用调试模式 // 应用调试模式
'app_debug' => Env::get('app.debug', true), 'app_debug' => Env::get('app.debug', false),
// 应用Trace // 应用Trace
'app_trace' => Env::get('app.trace', false), 'app_trace' => Env::get('app.trace', false),
// 应用模式状态 // 应用模式状态
@ -159,7 +159,7 @@ return [
// 错误显示信息,非调试模式有效 // 错误显示信息,非调试模式有效
'error_message' => '你所浏览的页面暂时无法访问', 'error_message' => '你所浏览的页面暂时无法访问',
// 显示错误信息 // 显示错误信息
'show_error_msg' => true, 'show_error_msg' => false,
// 异常处理handle类 留空使用 \think\exception\Handle // 异常处理handle类 留空使用 \think\exception\Handle
'exception_handle' => '', 'exception_handle' => '',
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------

View File

@ -102,8 +102,12 @@ define(['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, undefine
}, },
//获取修复后可访问的cdn链接 //获取修复后可访问的cdn链接
cdnurl: function (url, domain) { cdnurl: function (url, domain) {
if (typeof url === 'undefined') {
return url;
}
var rule = new RegExp("^((?:[a-z]+:)?\\/\\/|data:image\\/)", "i"); var rule = new RegExp("^((?:[a-z]+:)?\\/\\/|data:image\\/)", "i");
var cdnurl = Config.upload.cdnurl; var cdnurl = Config.upload.cdnurl;
console.log(url,domain);
if (typeof domain === 'undefined' || domain === true || cdnurl.indexOf("/") === 0) { if (typeof domain === 'undefined' || domain === true || cdnurl.indexOf("/") === 0) {
url = rule.test(url) || (cdnurl && url.indexOf(cdnurl) === 0) ? url : cdnurl + url; url = rule.test(url) || (cdnurl && url.indexOf(cdnurl) === 0) ? url : cdnurl + url;
} }