typo修复,正则字符串修复

This commit is contained in:
piexlmax(奇淼
2024-03-14 14:50:41 +08:00
parent 50b1d21d13
commit 57cfedfd7c
2 changed files with 3 additions and 4 deletions
@@ -455,7 +455,7 @@ const sortChange = ({ prop, order }) => {
let sort = sortMap[prop]
if(!sort){
sort = prop.replace(/[A-Z]/g, match => _${match.toLowerCase()})
sort = prop.replace(/[A-Z]/g, match => `_${match.toLowerCase()}`)
}
searchInfo.value.sort = sort