[fix] input cursor auto moving to the end

This commit is contained in:
Purp1e
2025-03-13 22:25:06 +08:00
parent 0bd15a80cd
commit ccf9e93382
3 changed files with 42 additions and 18 deletions

View File

@@ -49,7 +49,7 @@ export const addLaunchOption = (option: string) => {
}
export const resetToolStore = () => {
toolStore.state.launchOptions = defaultValue.launchOptions
toolStore.state.launchIndex = defaultValue.launchIndex
toolStore.state.powerPlan = defaultValue.powerPlan
setLaunchOptions(defaultValue.launchOptions)
setLaunchIndex(defaultValue.launchIndex)
setPowerPlan(defaultValue.powerPlan)
}