improve votes

This commit is contained in:
liangping
2023-07-11 10:23:09 +08:00
parent 8f77758fe9
commit 65c9f8c69a
3 changed files with 62 additions and 2 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ const format = useFormatter();
function isMD() {
if (
props.value &&
(props.value.indexOf('\n') > -1 || props.value.indexOf('\\n') > -1)
(String(props.value).indexOf('\n') > -1 || String(props.value).indexOf('\\n') > -1)
) {
return true;
}