AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.
HTML ai-agentcloudflarecloudflare-d1cloudflare-r2cloudflare-workersdockerelectronevernoteevernote-alternativeknowledge-basemcpnote-takingobsidian-alternativeoffline-firstpersonal-knowledge-basepwaself-hostedsqlitetiptapweb-clipper
feat(desktop): add local data reset
tianma-if5c59ae9bca3d
diff --git a/apps/desktop/README.md b/apps/desktop/README.mdindex fda41f5f..207b00cd 100644--- a/apps/desktop/README.md+++ b/apps/desktop/README.md@@ -87,6 +87,13 @@ backup creates an additional protective backup first, restores the SQLitedatabase in place, restores the staged offline attachment directory when thesnapshot contains one, applies any newer migrations, and reloads the workspace.+Packaged macOS builds also expose **Settings → Advanced → Clear local data**.+After an explicit destructive confirmation, EdgeEver stops the local sidecar,+removes every account's local SQLite data, unsynced queue, offline attachments,+caches, backups, settings, and sign-in state, then relaunches into first-run+setup. Server data and files exported outside the app data directory are never+removed by this action.+Local SQLite data, backups, staged attachments, and resource cache are scopedby the configured instance and authenticated user. Existing pre-scope data ismigrated to the first authenticated account that opens the upgraded desktopdiff --git a/apps/desktop/src/main/index.mjs b/apps/desktop/src/main/index.mjsindex 94b5f829..bb858d14 100644--- a/apps/desktop/src/main/index.mjs+++ b/apps/desktop/src/main/index.mjs@@ -22,6 +22,7 @@ import { isAllowedPrintPreviewUrl } from "./window-open-policy.mjs";import { showWindow } from "./window-visibility.mjs";import { trayIconPath } from "./tray-icon.mjs";import { writeRichClipboard } from "./clipboard-write.mjs";+import { scheduleMacLocalDataReset } from "./local-data-reset.mjs";import electronUpdater from "electron-updater";const { autoUpdater } = electronUpdater;@@ -79,6 +80,7 @@ let shutdownCleanupStarted = false;let sidecarRestartTimer = null;let sidecarRestartAttempts = 0;let sidecarRestartInFlight = false;+let localDataResetScheduled = false;const hasSingleInstanceLock = app.requestSingleInstanceLock();const windowStatePath = () => join(app.getPath("userData"), "window-state.json");const instanceUrlPath = () => join(app.getPath("userData"), "instance-url");@@ -679,6 +681,9 @@ app.whenReady().then(async () => {await startSidecar();createTray();+ ipcMain.on("desktop:local-data-reset-available-sync", (event) => {+ event.returnValue = process.platform === "darwin" && app.isPackaged && !requestedUserDataDirectory;+ });ipcMain.handle("desktop:sidecar-request", async (_event, method, params) => {if (!sidecar) throw new Error("EdgeEver sidecar is unavailable");const result = await sidecar.request(method, params);@@ -727,6 +732,43 @@ app.whenReady().then(async () => {await saveDesktopSessionToken("");return { stored: false };});+ ipcMain.handle("desktop:clear-local-data", async (event) => {+ if (event.sender !== mainWindow?.webContents) throw new Error("Local data reset must come from the main window");+ if (process.platform !== "darwin" || !app.isPackaged) throw new Error("Local data reset is only available in the packaged macOS app");+ if (requestedUserDataDirectory) throw new Error("Local data reset is unavailable with a custom user-data directory");+ if (localDataResetScheduled) return { scheduled: true };++ localDataResetScheduled = true;+ isQuitting = true;+ shutdownCleanupStarted = true;+ if (sidecarRestartTimer) {+ clearTimeout(sidecarRestartTimer);+ sidecarRestartTimer = null;+ }+ tray?.destroy();++ try {+ await stopSidecar();+ await Promise.allSettled([+ session.defaultSession.clearStorageData(),+ session.defaultSession.clearCache(),+ ]);+ scheduleMacLocalDataReset({+ appDataDirectory: app.getPath("appData"),+ executablePath: process.execPath,+ parentPid: process.pid,+ userDataDirectory: app.getPath("userData"),+ });+ } catch (error) {+ localDataResetScheduled = false;+ isQuitting = false;+ shutdownCleanupStarted = false;+ throw error;+ }++ setTimeout(() => app.exit(0), 50).unref();+ return { scheduled: true };+ });ipcMain.handle("desktop:set-api-base-url", async (_event, value) => {const normalized = typeof value === "string" ? value.trim().replace(/\/$/, "") : "";if (normalized) {diff --git a/apps/desktop/src/main/local-data-reset.mjs b/apps/desktop/src/main/local-data-reset.mjsnew file mode 100644index 00000000..4a809835--- /dev/null+++ b/apps/desktop/src/main/local-data-reset.mjs@@ -0,0 +1,78 @@+import { spawn } from "node:child_process";+import { isAbsolute, relative, resolve, sep } from "node:path";++const LOCAL_DATA_RESET_HELPER = String.raw`+parent_pid="$1"+user_data_dir="$2"+application_path="$3"+attempt=0+while /bin/kill -0 "$parent_pid" 2>/dev/null && [ "$attempt" -lt 300 ]; do+ /bin/sleep 0.1+ attempt=$((attempt + 1))+done+if /bin/kill -0 "$parent_pid" 2>/dev/null; then+ exit 1+fi+if /bin/rm -rf -- "$user_data_dir"; then+ /bin/mkdir -p "$user_data_dir"+ /usr/bin/touch "$user_data_dir/installation-confirmed"+ /bin/chmod 700 "$user_data_dir"+ /bin/chmod 600 "$user_data_dir/installation-confirmed"+ /usr/bin/open -n "$application_path"+fi+`;++export const managedUserDataDirectory = (userDataDirectory, appDataDirectory) => {+ const target = resolve(userDataDirectory);+ const appData = resolve(appDataDirectory);+ const relativeTarget = relative(appData, target);+ if (+ !relativeTarget ||+ relativeTarget === ".." ||+ relativeTarget.startsWith(`..${sep}`) ||+ isAbsolute(relativeTarget) ||+ relativeTarget.includes(sep)+ ) {+ throw new Error("EdgeEver local data must be a direct child of the application-data directory");+ }+ return target;+};++export const macApplicationBundlePath = (executablePath) => {+ let candidate = resolve(executablePath);+ while (true) {+ if (candidate.toLowerCase().endsWith(".app")) return candidate;+ const parent = resolve(candidate, "..");+ if (parent === candidate) break;+ candidate = parent;+ }+ throw new Error("EdgeEver must be running from a macOS application bundle");+};++export const scheduleMacLocalDataReset = ({+ appDataDirectory,+ executablePath,+ parentPid,+ spawnProcess = spawn,+ userDataDirectory,+}) => {+ const target = managedUserDataDirectory(userDataDirectory, appDataDirectory);+ const applicationPath = macApplicationBundlePath(executablePath);+ const helper = spawnProcess(+ "/bin/sh",+ [+ "-c",+ LOCAL_DATA_RESET_HELPER,+ "edgeever-local-data-reset",+ String(parentPid),+ target,+ applicationPath,+ ],+ {+ detached: true,+ stdio: "ignore",+ },+ );+ helper.unref();+ return { applicationPath, target };+};diff --git a/apps/desktop/src/main/local-data-reset.test.mjs b/apps/desktop/src/main/local-data-reset.test.mjsnew file mode 100644index 00000000..9427a568--- /dev/null+++ b/apps/desktop/src/main/local-data-reset.test.mjs@@ -0,0 +1,64 @@+import { describe, expect, test } from "bun:test";+import {+ macApplicationBundlePath,+ managedUserDataDirectory,+ scheduleMacLocalDataReset,+} from "./local-data-reset.mjs";++describe("desktop local data reset", () => {+ test("only accepts a direct child of the application-data directory", () => {+ expect(managedUserDataDirectory(+ "/Users/example/Library/Application Support/EdgeEver",+ "/Users/example/Library/Application Support",+ )).toBe("/Users/example/Library/Application Support/EdgeEver");++ expect(() => managedUserDataDirectory(+ "/Users/example/Library/Application Support",+ "/Users/example/Library/Application Support",+ )).toThrow();+ expect(() => managedUserDataDirectory(+ "/Users/example/Library/Application Support/EdgeEver/accounts",+ "/Users/example/Library/Application Support",+ )).toThrow();+ expect(() => managedUserDataDirectory(+ "/Users/example/Documents",+ "/Users/example/Library/Application Support",+ )).toThrow();+ });++ test("finds the enclosing macOS application bundle", () => {+ expect(macApplicationBundlePath("/Applications/EdgeEver.app/Contents/MacOS/EdgeEver"))+ .toBe("/Applications/EdgeEver.app");+ expect(() => macApplicationBundlePath("/usr/local/bin/edgeever")).toThrow();+ });++ test("passes paths as shell arguments instead of interpolating them", () => {+ let invocation;+ let unrefCalled = false;+ const result = scheduleMacLocalDataReset({+ appDataDirectory: "/Users/example/Library/Application Support",+ executablePath: "/Applications/EdgeEver.app/Contents/MacOS/EdgeEver",+ parentPid: 42,+ spawnProcess: (...args) => {+ invocation = args;+ return { unref: () => { unrefCalled = true; } };+ },+ userDataDirectory: "/Users/example/Library/Application Support/EdgeEver data",+ });++ expect(invocation[0]).toBe("/bin/sh");+ expect(invocation[1].slice(-3)).toEqual([+ "42",+ "/Users/example/Library/Application Support/EdgeEver data",+ "/Applications/EdgeEver.app",+ ]);+ expect(invocation[1][1]).not.toContain("/Applications/EdgeEver.app");+ expect(invocation[1][1]).not.toContain("EdgeEver data");+ expect(invocation[2]).toEqual({ detached: true, stdio: "ignore" });+ expect(unrefCalled).toBe(true);+ expect(result).toEqual({+ applicationPath: "/Applications/EdgeEver.app",+ target: "/Users/example/Library/Application Support/EdgeEver data",+ });+ });+});diff --git a/apps/desktop/src/preload/index.cjs b/apps/desktop/src/preload/index.cjsindex 44bd0eff..afe2eee1 100644--- a/apps/desktop/src/preload/index.cjs+++ b/apps/desktop/src/preload/index.cjs@@ -2,6 +2,7 @@ const { contextBridge, ipcRenderer } = require("electron");contextBridge.exposeInMainWorld("edgeeverDesktop", Object.freeze({isAvailable: true,+ canClearLocalData: ipcRenderer.sendSync("desktop:local-data-reset-available-sync"),sidecarStatus: () => ipcRenderer.invoke("desktop:sidecar-status"),setAccountScope: (accountId) => ipcRenderer.invoke("desktop:set-account-scope", accountId),apiBaseUrl: ipcRenderer.sendSync("desktop:api-base-url-sync"),@@ -11,6 +12,7 @@ contextBridge.exposeInMainWorld("edgeeverDesktop", Object.freeze({copyHtml: (html, plainText) => ipcRenderer.invoke("desktop:copy-html", { html, plainText }),setSessionToken: (value) => ipcRenderer.invoke("desktop:set-session-token", value),clearSessionToken: () => ipcRenderer.invoke("desktop:clear-session-token"),+ clearLocalData: () => ipcRenderer.invoke("desktop:clear-local-data"),updateStatus: () => ipcRenderer.invoke("desktop:update-status"),downloadUpdate: () => ipcRenderer.invoke("desktop:download-update"),installUpdate: () => ipcRenderer.invoke("desktop:install-update"),diff --git a/apps/web/src/components/SettingsPane.tsx b/apps/web/src/components/SettingsPane.tsxindex d433ac1d..a46883d5 100644--- a/apps/web/src/components/SettingsPane.tsx+++ b/apps/web/src/components/SettingsPane.tsx@@ -22,6 +22,7 @@ import { cn } from "@/lib/utils";import { AdvancedPlayCard } from "./settings/AdvancedPlayCard";import { AccountInfoCard } from "./settings/AccountInfoCard";import { DataExportCard } from "./settings/DataExportCard";+import { DesktopLocalDataCard } from "./settings/DesktopLocalDataCard";import { LoginDevicesCard } from "./settings/LoginDevicesCard";import { EvernoteImportGuideCard } from "./settings/EvernoteImportGuideCard";import { FeedbackLink } from "./settings/FeedbackLink";@@ -98,6 +99,7 @@ export const SettingsPane = ({const [activeTab, setActiveTab] = useState<TabKey>("general");const [activeMobileTab, setActiveMobileTab] = useState<TabKey | null>(null);const [systemInfoOpen, setSystemInfoOpen] = useState(false);+ const canClearLocalData = Boolean(window.edgeeverDesktop?.canClearLocalData);const tabItems: TabItem[] = [{@@ -138,17 +140,19 @@ export const SettingsPane = ({hoverColorClass: "hover:bg-emerald-50/40",iconColorClass: "text-emerald-600",},- {- key: "advanced" as const,- label: t("settings.tabs.advanced"),- icon: Wrench,- colorClass: "text-emerald-700",- bgColorClass: "bg-emerald-50/80",- hoverColorClass: "hover:bg-emerald-50/40",- iconColorClass: "text-emerald-600",- },]: []),+ ...(isOwner || canClearLocalData+ ? [{+ key: "advanced" as const,+ label: t("settings.tabs.advanced"),+ icon: Wrench,+ colorClass: "text-emerald-700",+ bgColorClass: "bg-emerald-50/80",+ hoverColorClass: "hover:bg-emerald-50/40",+ iconColorClass: "text-emerald-600",+ }]+ : []),{key: "account",label: t("settings.tabs.account"),@@ -231,9 +235,10 @@ export const SettingsPane = ({</SettingsGroup>);case "advanced":- return isOwner ? (+ return isOwner || canClearLocalData ? (<SettingsGroup>- <ObjectStorageCard demoMode={demoMode} />+ {isOwner ? <ObjectStorageCard demoMode={demoMode} /> : null}+ <DesktopLocalDataCard /></SettingsGroup>) : null;case "account":diff --git a/apps/web/src/components/settings/DesktopLocalDataCard.tsx b/apps/web/src/components/settings/DesktopLocalDataCard.tsxnew file mode 100644index 00000000..43447fd8--- /dev/null+++ b/apps/web/src/components/settings/DesktopLocalDataCard.tsx@@ -0,0 +1,111 @@+import { useState } from "react";+import { AlertCircle, AlertTriangle, RotateCcw } from "lucide-react";+import { useTranslation } from "react-i18next";+import { Button } from "@/components/ui/button";+import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";+import {+ Dialog,+ DialogContent,+ DialogDescription,+ DialogFooter,+ DialogHeader,+ DialogTitle,+} from "@/components/ui/dialog";++export const DesktopLocalDataCard = () => {+ const { t } = useTranslation();+ const bridge = window.edgeeverDesktop;+ const [confirmationOpen, setConfirmationOpen] = useState(false);+ const [isClearing, setIsClearing] = useState(false);+ const [error, setError] = useState(false);++ if (!bridge?.canClearLocalData) return null;++ const handleClear = async () => {+ setIsClearing(true);+ setError(false);+ try {+ await bridge.clearLocalData();+ } catch {+ setIsClearing(false);+ setError(true);+ }+ };++ return (+ <>+ <Card className="w-full min-w-0 overflow-hidden border-rose-100 bg-rose-50/30 shadow-none">+ <CardHeader className="p-4 pb-3 sm:p-5 sm:pb-3">+ <CardTitle className="flex items-center gap-2 text-sm text-rose-800">+ <AlertTriangle className="h-4 w-4" />+ {t("localDataReset.title")}+ </CardTitle>+ <CardDescription className="text-xs leading-5">{t("localDataReset.description")}</CardDescription>+ </CardHeader>+ <CardContent className="grid gap-3 p-4 pt-0 sm:px-5 sm:pb-5">+ {error ? (+ <p className="flex items-center gap-1.5 text-xs text-rose-700" role="alert">+ <AlertCircle className="h-3.5 w-3.5 shrink-0" />+ {t("localDataReset.error")}+ </p>+ ) : null}+ <div>+ <Button+ type="button"+ variant="danger"+ className="bg-rose-600 font-semibold text-white shadow-sm hover:bg-rose-700"+ onClick={() => {+ setError(false);+ setConfirmationOpen(true);+ }}+ >+ <RotateCcw className="h-4 w-4" />+ {t("localDataReset.action")}+ </Button>+ </div>+ </CardContent>+ </Card>++ <Dialog+ open={confirmationOpen}+ onOpenChange={(open) => {+ if (!isClearing) setConfirmationOpen(open);+ }}+ >+ <DialogContent className="max-w-md gap-0 overflow-hidden p-0">+ <DialogHeader className="flex flex-row items-start gap-4 border-b border-slate-200 px-5 py-5 text-left">+ <span className="flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-rose-50 text-rose-700">+ <AlertTriangle className="h-5 w-5" />+ </span>+ <div className="min-w-0 flex-1">+ <DialogTitle className="text-base leading-6">{t("localDataReset.dialogTitle")}</DialogTitle>+ <DialogDescription className="mt-1 text-sm leading-5">+ {t("localDataReset.dialogDescription")}+ </DialogDescription>+ </div>+ </DialogHeader>+ <div className="grid gap-3 px-5 py-4 text-sm leading-5 text-slate-600">+ <p>{t("localDataReset.remoteUnaffected")}</p>+ <p className="rounded-lg border border-rose-200 bg-rose-50 px-3 py-2.5 font-medium text-rose-800">+ {t("localDataReset.warning")}+ </p>+ </div>+ <DialogFooter className="flex flex-col-reverse gap-2 border-t border-slate-100 bg-slate-50/50 px-5 py-4 sm:flex-row sm:justify-end">+ <Button type="button" variant="outline" disabled={isClearing} onClick={() => setConfirmationOpen(false)}>+ {t("common.cancel")}+ </Button>+ <Button+ type="button"+ variant="danger"+ className="bg-rose-600 font-semibold text-white hover:bg-rose-700"+ disabled={isClearing}+ onClick={() => void handleClear()}+ >+ {isClearing ? t("localDataReset.clearing") : t("localDataReset.confirm")}+ </Button>+ </DialogFooter>+ </DialogContent>+ </Dialog>+ </>+ );+};diff --git a/apps/web/src/vite-env.d.ts b/apps/web/src/vite-env.d.tsindex ceb0d9af..30cd92af 100644--- a/apps/web/src/vite-env.d.ts+++ b/apps/web/src/vite-env.d.ts@@ -11,6 +11,7 @@ declare const __EDGEEVER_DEVELOPMENT_PROFILE__: "" | "local" | "demo";interface EdgeEverDesktopBridge {isAvailable: boolean;+ canClearLocalData: boolean;apiBaseUrl: string;setApiBaseUrl(value: string): Promise<string>;getSessionToken(): string;@@ -18,6 +19,7 @@ interface EdgeEverDesktopBridge {copyHtml(html: string, plainText: string): Promise<boolean>;setSessionToken(value: string): Promise<{ stored: boolean }>;clearSessionToken(): Promise<{ stored: false }>;+ clearLocalData(): Promise<{ scheduled: true }>;sidecarStatus(): Promise<{ available: boolean; path: string; scope: string }>;setAccountScope(accountId: string | null): Promise<{ ready: true; scope: string }>;updateStatus(): Promise<{ state: "idle" | "available" | "downloaded" }>;diff --git a/package.json b/package.jsonindex 73674947..0222c409 100644--- a/package.json+++ b/package.json@@ -56,7 +56,7 @@"release": "bun scripts/release.mjs","publish:stores": "bun scripts/store-delivery.mjs","test:desktop:sidecar": "bun scripts/test-desktop-sidecar.mjs",- "test:desktop": "bun test apps/desktop/src/main/account-scope.test.mjs apps/desktop/src/main/clipboard-write.test.mjs apps/desktop/src/main/diagnostic-log.test.mjs apps/desktop/src/main/file-association.test.mjs apps/desktop/src/main/file-permissions.test.mjs apps/desktop/src/main/installation-location.test.mjs apps/desktop/src/main/resource-request.test.mjs apps/desktop/src/main/resource-url.test.mjs apps/desktop/src/main/staged-resource.test.mjs apps/desktop/src/main/tray-icon.test.mjs apps/desktop/src/main/user-data-directory.test.mjs apps/desktop/src/main/window-open-policy.test.mjs apps/desktop/src/main/window-visibility.test.mjs apps/web/src/lib/api.test.mjs apps/web/src/lib/app-page-path.test.mjs apps/web/src/lib/clipboard.test.mjs apps/web/src/lib/desktop-repository.test.mjs apps/web/src/lib/desktop-resources.test.mjs apps/web/src/lib/desktop-sync.test.mjs apps/web/src/lib/local-mirror.test.mjs apps/web/src/lib/repository.test.mjs apps/web/src/lib/runtime.test.mjs apps/web/src/lib/sync-queue.test.mjs && bun run test:desktop:sidecar",+ "test:desktop": "bun test apps/desktop/src/main/account-scope.test.mjs apps/desktop/src/main/clipboard-write.test.mjs apps/desktop/src/main/diagnostic-log.test.mjs apps/desktop/src/main/file-association.test.mjs apps/desktop/src/main/file-permissions.test.mjs apps/desktop/src/main/installation-location.test.mjs apps/desktop/src/main/local-data-reset.test.mjs apps/desktop/src/main/resource-request.test.mjs apps/desktop/src/main/resource-url.test.mjs apps/desktop/src/main/staged-resource.test.mjs apps/desktop/src/main/tray-icon.test.mjs apps/desktop/src/main/user-data-directory.test.mjs apps/desktop/src/main/window-open-policy.test.mjs apps/desktop/src/main/window-visibility.test.mjs apps/web/src/lib/api.test.mjs apps/web/src/lib/app-page-path.test.mjs apps/web/src/lib/clipboard.test.mjs apps/web/src/lib/desktop-repository.test.mjs apps/web/src/lib/desktop-resources.test.mjs apps/web/src/lib/desktop-sync.test.mjs apps/web/src/lib/local-mirror.test.mjs apps/web/src/lib/repository.test.mjs apps/web/src/lib/runtime.test.mjs apps/web/src/lib/sync-queue.test.mjs && bun run test:desktop:sidecar","verify:desktop-renderer": "bun scripts/verify-desktop-renderer.mjs","verify:desktop-package": "bun scripts/verify-desktop-package.mjs","build:cloudflare": "bun run typecheck && bun run build",diff --git a/packages/shared/src/i18n/en-US.ts b/packages/shared/src/i18n/en-US.tsindex 32d8b844..40f840f9 100644--- a/packages/shared/src/i18n/en-US.ts+++ b/packages/shared/src/i18n/en-US.ts@@ -1086,6 +1086,18 @@ export const enUS = {loggingOut: "Signing out...",logout: "Sign out",},+ localDataReset: {+ title: "Danger zone",+ description: "Remove all EdgeEver data from this Mac and return the app to its first-use state.",+ action: "Clear local data",+ dialogTitle: "Clear EdgeEver data from this Mac?",+ dialogDescription: "This will remove all local notes, unsynced changes, offline attachments, caches, local backups, app settings, and sign-in information.",+ remoteUnaffected: "Data on your server and exported files will not be affected. The app will restart automatically when clearing is complete.",+ warning: "This action cannot be undone. Any notes or changes that have not been synced will be permanently lost.",+ confirm: "Clear local data",+ clearing: "Clearing...",+ error: "Local data could not be cleared. Please try again.",+ },loginDevices: {title: "Signed-in devices",description: "View devices where this account is still signed in and their latest activity.",diff --git a/packages/shared/src/i18n/zh-CN.ts b/packages/shared/src/i18n/zh-CN.tsindex 9dc8de4d..68af76af 100644--- a/packages/shared/src/i18n/zh-CN.ts+++ b/packages/shared/src/i18n/zh-CN.ts@@ -1086,6 +1086,18 @@ export const zhCN = {loggingOut: "安全退出中...",logout: "退出登录",},+ localDataReset: {+ title: "危险操作",+ description: "清除这台 Mac 上的所有 EdgeEver 本地数据,并恢复到首次使用状态。",+ action: "清除本地数据",+ dialogTitle: "清除这台 Mac 上的 EdgeEver 数据?",+ dialogDescription: "这将清除所有本地笔记、未同步的更改、离线附件、缓存、本地备份、应用设置和登录状态。",+ remoteUnaffected: "服务器上的数据和已经导出的文件不会受到影响。应用将在清除完成后自动重新启动。",+ warning: "此操作无法撤销。尚未同步的笔记和更改将永久丢失。",+ confirm: "清除本地数据",+ clearing: "正在清除...",+ error: "无法清除本地数据,请重试。",+ },loginDevices: {title: "登录设备",description: "查看当前账号仍保持登录的设备及最近访问时间。",