mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +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 });
|
if (typeof msg.status === 'number' && window.parent) window.parent.postMessage({ status: msg.status });
|
||||||
};
|
};
|
||||||
$(document).on('click', '.subtask-case', function () {
|
$(document).on('click', '.subtask-case', function () {
|
||||||
const data = $(this).find('.message').text();
|
const text = $(this).find('.message').text();
|
||||||
if (!data?.trim()) return;
|
const data = $(this).find('.message').html();
|
||||||
|
if (!text?.trim()) return;
|
||||||
new InfoDialog({
|
new InfoDialog({
|
||||||
$body: tpl(<pre>{data}</pre>),
|
$body: tpl(<pre dangerouslySetInnerHTML={{ __html: data }} />),
|
||||||
}).open();
|
}).open();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
Reference in new issue
Block a user