mirror of
https://github.com/zhinianboke/xianyu-auto-reply.git
synced 2025-08-30 01:27:35 +08:00
16 lines
404 B
JavaScript
16 lines
404 B
JavaScript
// ==================== 全局变量 ====================
|
|
const apiBase = location.origin;
|
|
let keywordsData = {};
|
|
let currentCookieId = '';
|
|
let editCookieId = '';
|
|
let authToken = localStorage.getItem('auth_token');
|
|
let dashboardData = {
|
|
accounts: [],
|
|
totalKeywords: 0
|
|
};
|
|
|
|
// 账号关键词缓存
|
|
let accountKeywordCache = {};
|
|
let cacheTimestamp = 0;
|
|
const CACHE_DURATION = 30000; // 30秒缓存
|