+7
-1
@@ -112,8 +112,14 @@
|
||||
renderGrouped(mainsCache, filterQ);
|
||||
return;
|
||||
}
|
||||
if (mainsLoading) return;
|
||||
if (mainsLoading) {
|
||||
dropdown.innerHTML = '<div class="symbol-option">正在识别主力合约…</div>';
|
||||
dropdown.classList.add('show');
|
||||
return;
|
||||
}
|
||||
mainsLoading = true;
|
||||
dropdown.innerHTML = '<div class="symbol-option">正在识别主力合约…</div>';
|
||||
dropdown.classList.add('show');
|
||||
fetch('/api/symbols/mains')
|
||||
.then(function (r) { return r.json(); })
|
||||
.then(function (groups) {
|
||||
|
||||
Reference in New Issue
Block a user