fix: console status display — task info overridden by msg
This commit is contained in:
parent
ea955eb265
commit
67e8c3617a
@ -378,14 +378,13 @@
|
||||
// Show saved task info and auto-refresh from URL param
|
||||
(function() {
|
||||
var m = location.search.match(/[?&]task=([^&]+)/);
|
||||
if (m) {
|
||||
document.getElementById('console-status').innerHTML = '⏳ 任务 ' + m[1].substring(0,8) + ' 执行中,页面将自动刷新...';
|
||||
setTimeout(function(){ location.href = '/ui/console'; }, 6000);
|
||||
}
|
||||
var msg = location.search.match(/[?&]msg=([^&]+)/);
|
||||
if (msg) {
|
||||
if (m) {
|
||||
document.getElementById('console-status').innerHTML = '⏳ 任务 ' + m[1].substring(0,8) + ' 执行中,' + (msg ? decodeURIComponent(msg[1]) : '页面将自动刷新...');
|
||||
setTimeout(function(){ location.href = '/ui/console'; }, 8000);
|
||||
} else if (msg) {
|
||||
document.getElementById('console-status').innerHTML = decodeURIComponent(msg[1]);
|
||||
if (!m) setTimeout(function(){ document.getElementById('console-status').innerHTML = ''; }, 5000);
|
||||
setTimeout(function(){ document.getElementById('console-status').innerHTML = ''; }, 5000);
|
||||
}
|
||||
})();
|
||||
})();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user