mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-18 13:23:33 +08:00
Update terminal.ts
This commit is contained in:
parent
08747bfdd2
commit
d02cb9a7fd
@ -55,4 +55,12 @@ export const terminalApi = {
|
||||
const events = await import('@tauri-apps/api/event')
|
||||
return events.listen<TerminalExitPayload>('terminal-exit', (event) => handler(event.payload))
|
||||
},
|
||||
|
||||
getBashPath() {
|
||||
return invoke<string | null>('get_terminal_bash_path', undefined)
|
||||
},
|
||||
|
||||
setBashPath(path: string | null) {
|
||||
return invoke<void>('set_terminal_bash_path', { path })
|
||||
},
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user