Tui 模块开发完成,数据正常写入数据库
This commit is contained in:
@@ -227,7 +227,6 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
||||
case tea.KeyMsg:
|
||||
switch msg.String() {
|
||||
case "ctrl+c":
|
||||
m.saveConfig()
|
||||
//m.quitting = true
|
||||
return m, tea.Quit
|
||||
|
||||
@@ -257,6 +256,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
||||
|
||||
// 页6:确认配置 → 退出并保存
|
||||
case "confirm_btn":
|
||||
m.saveConfig()
|
||||
m.done = true
|
||||
//m.quitting = true
|
||||
return m, tea.Quit
|
||||
|
||||
Reference in New Issue
Block a user