Merge branch 'docker' of https://github.com/hogenwang/comcms_core into docker
# Conflicts: # .gitignore # COMCMS.API/COMCMS.API.csproj # COMCMS.Common/COMCMS.Common.csproj # COMCMS.Core/COMCMS.Core.csproj # COMCMS.Web/COMCMS.Web.csproj # COMCMS.Web/Dockerfile # COMCMS.Web/Views/Home/Install.cshtml # COMCMS.Web/appsettings.json # Lib.Core/Lib.Core.csproj # README.md # compose.yaml
This commit is contained in:
@@ -37,10 +37,27 @@
|
||||
</div>
|
||||
@if (ViewBag.sqltype == "mysql")
|
||||
{
|
||||
<<<<<<< HEAD
|
||||
<div class="form-group">
|
||||
<select class="form-control" name="mysqltype" id="mysqltype">
|
||||
<option value="windows">Windows 下 Mysql(数据库表不区分大小写)</option>
|
||||
<option value="linux">Linux 下 Mysql(数据库表区分大小写)</option>
|
||||
=======
|
||||
var isLinux = System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(System.Runtime.InteropServices.OSPlatform.Linux);
|
||||
var defaultMysqlType = isLinux ? "linux" : "windows";
|
||||
<div class="form-group">
|
||||
<select class="form-control" name="mysqltype" id="mysqltype">
|
||||
@if (defaultMysqlType == "windows")
|
||||
{
|
||||
<option value="windows" selected>Windows 下 Mysql(数据库表不区分大小写)</option>
|
||||
<option value="linux">Linux 下 Mysql(数据库表区分大小写)</option>
|
||||
}
|
||||
else
|
||||
{
|
||||
<option value="windows">Windows 下 Mysql(数据库表不区分大小写)</option>
|
||||
<option value="linux" selected>Linux 下 Mysql(数据库表区分大小写)</option>
|
||||
}
|
||||
>>>>>>> df478d351626c40c987712d66d991f327a698ff5
|
||||
</select>
|
||||
</div>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user