修复更新弹窗历史版本描述多余的换行问题

pull/96/head
lyswhut 2019-08-19 21:52:56 +08:00
parent 2d5848db94
commit b8d07b365b
3 changed files with 5 additions and 5 deletions

View File

@ -1,3 +1,3 @@
### 修复 ### 修复
- 修复列表多选音源限制Bug - 修复更新弹窗历史版本描述多余的换行问题

View File

@ -127,7 +127,7 @@ export default {
h3 { h3 {
padding: 5px 0 3px; padding: 5px 0 3px;
} }
padding-left: 15px; padding: 0 15px;
+ .item { + .item {
padding-top: 15px; padding-top: 15px;
} }

View File

@ -13,9 +13,9 @@ export default {
if (source != null) state.setting.leaderboard.source = source if (source != null) state.setting.leaderboard.source = source
}, },
setNewVersion(state, val) { setNewVersion(state, val) {
val.history.forEach(ver => { // val.history.forEach(ver => {
ver.desc = ver.desc.replace(/\n/g, '<br>') // ver.desc = ver.desc.replace(/\n/g, '<br>')
}) // })
// val.desc = val.desc.replace(/\n/g, '<br>') // val.desc = val.desc.replace(/\n/g, '<br>')
state.version.newVersion = val state.version.newVersion = val
}, },