fix: switch grid display for 'my' tab vs market tabs
This commit is contained in:
@@ -18,6 +18,7 @@ const PageMarket = {
|
||||
async _loadItems() {
|
||||
const grid = document.getElementById('market-grid');
|
||||
if (!grid) return;
|
||||
grid.style.display = 'grid';
|
||||
grid.innerHTML = '<div style="text-align:center;padding:40px;color:var(--text-tertiary);">加载中...</div>';
|
||||
|
||||
if (this._tab === 'mine') {
|
||||
@@ -56,6 +57,7 @@ const PageMarket = {
|
||||
},
|
||||
|
||||
async _loadMine(grid) {
|
||||
grid.style.display = 'block';
|
||||
try {
|
||||
const res = await fetch('/api/market/mine?token=' + encodeURIComponent(this._marketToken));
|
||||
const data = await res.json();
|
||||
|
||||
Reference in New Issue
Block a user