small fix

This commit is contained in:
2026-03-19 11:37:57 +08:00
parent 6f63f0519c
commit 5d96c565c1
4 changed files with 4 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
import { app, shell, BrowserWindow, ipcMain } from "electron";
import { app, shell, BrowserWindow } from "electron";
import { join } from "path";
import { electronApp, optimizer, is } from "@electron-toolkit/utils";
import { registerIpcHandlers } from "./ipc-handlers";

View File

@@ -3,7 +3,7 @@
* Displays app configuration details with file management and deploy functionality.
*/
import React, { useCallback, useEffect, useState } from "react";
import React, { useCallback, useEffect, useRef, useState } from "react";
import { useTranslation } from "react-i18next";
import { Spin, Tag, Space, App as AntApp, Tooltip, Badge } from "antd";
import { Button, Empty } from "@lobehub/ui";

View File

@@ -150,7 +150,7 @@ const DomainManager: React.FC<DomainManagerProps> = ({ collapsed = false, onTogg
<div className={styles.collapsedName}>{currentDomain.name}</div>
<div className={styles.collapsedDesc}>
{currentDomain.username} ·{" "}
<a target="_blank" href={"https://" + currentDomain.domain}>
<a target="_blank" rel="noreferrer" href={"https://" + currentDomain.domain} onClick={(e) => e.stopPropagation()}>
{currentDomain.domain}
</a>
</div>

View File

@@ -335,7 +335,7 @@ export const useFileChangeStore = create<FileChangeState>()(
hasRemoteChange: (domainId, appId, currentRevision) => {
const key = appKey(domainId, appId);
const storedRevision = get().appFiles[key]?.serverRevision;
if (storedRevision === null) return false;
if (storedRevision == null) return false;
return storedRevision !== currentRevision;
},
}),