Commit bc74d894 authored by daniel's avatar daniel

fix(index): 比赛助手默认样式为空的处理

parent 2ec8939b
......@@ -30,7 +30,7 @@ $(function () {
$('.savebtn').click(function () {
let bg = $('#cmptBgColorInput').val();
let logo = $('#hdcmptLogo').val();
let detailStyle = $('#detailStyle').val();
let detailStyle = $('#detailStyle').val()?.trim();
let isShowTab = $('#isShowInput').val();
let cmptId = getCId();
if (bg.length != 6) {
......@@ -38,7 +38,7 @@ $(function () {
return;
}
const param = {
detailStyle: detailStyle ?? '1',
detailStyle: detailStyle == null || detailStyle.length === 0 ? '1' : detailStyle,
cmptId,
logo,
cmptbgColor: "#" + bg,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment