Skip to content

Commit f902955

Browse files
committed
🐞 fix: 修复类型错误
1 parent b6ff4a8 commit f902955

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

electron/main/ipc/ipc-cache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const initCacheIpc = (): void => {
5454
// 读取指定缓存文件
5555
ipcMain.handle(
5656
"cache-get",
57-
(_event, type: CacheResourceType, key: string): Promise<CacheIpcResult<Buffer>> => {
57+
(_event, type: CacheResourceType, key: string): Promise<CacheIpcResult<Buffer | null>> => {
5858
return withErrorCatch(async () => {
5959
return await cacheService.get(type, key);
6060
});

src/components/Layout/Menu.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,6 @@ const checkMenuItem = () => {
342342
menuActiveKey.value = routerName;
343343
break;
344344
}
345-
console.log(menuActiveKey.value);
346345
};
347346
348347
// 开启心动模式

0 commit comments

Comments
 (0)