* [bug#60043,done,3h] check response and loadPage.

This commit is contained in:
liumengyi
2025-03-04 14:03:23 +08:00
committed by 田淑杰
parent 825b7c8ad8
commit 1eb414803e
+17 -2
View File
@@ -1,4 +1,19 @@
$(document).off('click', '.tipBtn').on('click', '.tipBtn', function()
$(document).off('click', '.tipBtn').on('click', '.tipBtn', function(event)
{
loadPage($(this).data('url'));
const link = $(this).attr('href');
if(typeof link == 'undefined') return true;
event.preventDefault();
$.get(link, function(response)
{
try
{
response = JSON.parse(response);
loadPage(link);
}
catch(e)
{
window.open(link);
}
});
})