diff --git a/vdoing/index.js b/vdoing/index.js index 2625795..d40b863 100644 --- a/vdoing/index.js +++ b/vdoing/index.js @@ -238,7 +238,7 @@ function getCardListDOM(dataList, row, config) { let listDOM = '' dataList.forEach(item => { listDOM += ` - <${item.link ? 'a href="' + item.link + '" target="' + target + '"' : 'span'} class="card-item ${row ? 'row-' + row : ''}" + <${item.link ? 'a href="' + withBase(item.link) + '" target="' + target + '"' : 'span'} class="card-item ${row ? 'row-' + row : ''}" style="${item.bgColor ? 'background-color:' + item.bgColor + ';--randomColor:' + item.bgColor + ';' : '--randomColor: var(--bodyBg);'}${item.textColor ? 'color:' + item.textColor + ';' : ''}" > ${item.avatar ? '' : ''} @@ -261,7 +261,7 @@ function getCardImgListDOM(dataList, row, config) { dataList.forEach(item => { listDOM += `
- +