ui: problem_main: allow multi-page selection

This commit is contained in:
undefined committed 2025-06-12 11:47:46 +08:00
1 parent 80f1158f66
commit 860b46347a
4 files changed
+106 -7

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@ import DOMServer from 'react-dom/server';
export function substitute(str: string, obj: any) {
return str.replace(/\{([^{}]+)\}/g, (match, key) => {
if (obj[key] !== undefined) return obj[key].toString();
if (obj[key] !== undefined && obj[key] !== null) return obj[key].toString();
return `{${key}}`;
});
}