add manage

This commit is contained in:
zizifn
2022-06-12 03:42:50 +08:00
committed by zizifn
parent a59f4d83fb
commit 8e5a651310

View File

@@ -39,7 +39,7 @@ async function addAccount(key) {
const jsonContent = await resp.json(); const jsonContent = await resp.json();
console.log(jsonContent); console.log(jsonContent);
if (save2Local.checked) { if (save2Local.checked && resp.ok) {
const appStr = localStorage.getItem("accounts") || '[]'; const appStr = localStorage.getItem("accounts") || '[]';
const appSet = new Set(JSON.parse(appStr)).add(key); const appSet = new Set(JSON.parse(appStr)).add(key);
const apps = [...appSet]; const apps = [...appSet];