安装程序确实js变量修复

This commit is contained in:
gongfuxiang 2022-05-20 12:53:32 +08:00
parent f858668ad4
commit 911637c17e
2 changed files with 4 additions and 0 deletions

View File

@ -36,6 +36,9 @@ class Common extends BaseController
// 当前方法
MyViewAssign('action', RequestAction());
// 系统类型
MyViewAssign('system_type', SystemService::SystemTypeValue());
// 系统环境参数最大数
MyViewAssign('env_max_input_vars_count', SystemService::EnvMaxInputVarsCount());
}

View File

@ -20,6 +20,7 @@
<link rel="stylesheet" type="text/css" href="{{$Think.__MY_ROOT_PUBLIC__}}static/common/css/common.css" />
<link rel="stylesheet" type="text/css" href="{{$Think.__MY_ROOT_PUBLIC__}}static/install/css/index.css" />
<script type="text/javascript">
var __system_type__ = '{{$system_type}}';
var __env_max_input_vars_count__ = '{{$env_max_input_vars_count}}';
</script>
<body>