mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-20 23:22:05 +08:00
format code
This commit is contained in:
parent
99873a0767
commit
f5136a0adb
@ -139,10 +139,7 @@ export class ShortcutService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void targetWindow.webContents
|
void targetWindow.webContents
|
||||||
.executeJavaScript(
|
.executeJavaScript(`typeof window.navigate === 'function' && window.navigate('/settings/provider')`, true)
|
||||||
`typeof window.navigate === 'function' && window.navigate('/settings/provider')`,
|
|
||||||
true
|
|
||||||
)
|
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
logger.warn('Failed to navigate to settings from shortcut:', error as Error)
|
logger.warn('Failed to navigate to settings from shortcut:', error as Error)
|
||||||
})
|
})
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import { IpcChannel } from '@shared/IpcChannel'
|
|
||||||
import { useShortcut } from '@renderer/hooks/useShortcuts'
|
import { useShortcut } from '@renderer/hooks/useShortcuts'
|
||||||
|
import { IpcChannel } from '@shared/IpcChannel'
|
||||||
import { useEffect } from 'react'
|
import { useEffect } from 'react'
|
||||||
import { useLocation, useNavigate } from 'react-router-dom'
|
import { useLocation, useNavigate } from 'react-router-dom'
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user