|
@@ -18,7 +18,7 @@ import { Notice } from "@/components/base";
|
|
|
import { TestBox } from "./test-box";
|
|
|
import delayManager from "@/services/delay";
|
|
|
import { cmdTestDelay, downloadIconCache } from "@/services/cmds";
|
|
|
-import { listen, Event, UnlistenFn } from "@tauri-apps/api/event";
|
|
|
+import { listen, UnlistenFn } from "@tauri-apps/api/event";
|
|
|
import { convertFileSrc } from "@tauri-apps/api/tauri";
|
|
|
|
|
|
interface Props {
|
|
@@ -48,7 +48,7 @@ export const TestItem = (props: Props) => {
|
|
|
|
|
|
async function initIconCachePath() {
|
|
|
if (icon && icon.trim().startsWith("http")) {
|
|
|
- const fileName = getFileName(icon);
|
|
|
+ const fileName = uid + "-" + getFileName(icon);
|
|
|
const iconPath = await downloadIconCache(icon, fileName);
|
|
|
setIconCachePath(convertFileSrc(iconPath));
|
|
|
}
|