fix(electron): reload view in tab context menu issue (#7702)

fix PD-1524
This commit is contained in:
pengx17 2024-08-05 03:11:49 +00:00
parent 9307acf0de
commit 741ff2379e
No known key found for this signature in database
GPG Key ID: 23F23D9E8B3971ED

View File

@ -1019,9 +1019,7 @@ export const showTabContextMenu = async (tabId: string, viewIndex: number) => {
{
label: 'Refresh tab',
click: () => {
WebContentViewsManager.instance
.getViewById(tabId)
?.webContents.reload();
reloadView().catch(logger.error);
},
},
{