mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
ui: optimize record_detail rich text message
This commit is contained in:
1 file changed
+4
-3
@@ -24,10 +24,11 @@ export default new NamedPage('record_detail', async () => {
|
||||
if (typeof msg.status === 'number' && window.parent) window.parent.postMessage({ status: msg.status });
|
||||
};
|
||||
$(document).on('click', '.subtask-case', function () {
|
||||
const data = $(this).find('.message').text();
|
||||
if (!data?.trim()) return;
|
||||
const text = $(this).find('.message').text();
|
||||
const data = $(this).find('.message').html();
|
||||
if (!text?.trim()) return;
|
||||
new InfoDialog({
|
||||
$body: tpl(<pre>{data}</pre>),
|
||||
$body: tpl(<pre dangerouslySetInnerHTML={{ __html: data }} />),
|
||||
}).open();
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user