no message

This commit is contained in:
kuaifan 2025-03-13 21:35:13 +08:00
parent 38eaf2eb02
commit 3c9447e1b6
3 changed files with 8 additions and 7 deletions

View File

@ -615,6 +615,7 @@ import {convertLocalResourcePath} from "../components/Replace/utils";
* @returns {string} * @returns {string}
*/ */
filterInvalidLine(content) { filterInvalidLine(content) {
if (!content) return '';
return `${content}` return `${content}`
.replace(/^(<p>\s*<\/p>)+|(<p>\s*<\/p>)+$/gi, '') .replace(/^(<p>\s*<\/p>)+|(<p>\s*<\/p>)+$/gi, '')
.replace(/^(<p><br\/*><\/p>)+|(<p><br\/*><\/p>)+$/gi, '') .replace(/^(<p><br\/*><\/p>)+|(<p><br\/*><\/p>)+$/gi, '')

View File

@ -3056,7 +3056,7 @@ export default {
}, },
onVisible(v) { onVisible(v) {
this.startMsgId = $A.runNum(v.length > 0 ? v[0] : 0) this.startMsgId = $A.runNum(v.length ? v[Math.min(1, v.length - 1)] : 0)
}, },
onBack() { onBack() {