更新了编辑配置文件的时候,模型类型名称没有跟上的bug

This commit is contained in:
2024-09-19 20:39:54 +08:00
parent a217b7c06b
commit 1a22c77c44
2 changed files with 4 additions and 3 deletions

View File

@@ -130,7 +130,6 @@ class SecondActivity : AppCompatActivity() {
tvName.text = "Name: ${config.name}"
tvName.setTextColor(Color.BLACK)
// 获取并设置 URL 的 TextView 前景色和背景色
val tvUrl = configView.findViewById<TextView>(R.id.tvUrl)
tvUrl.text = "URL: ${config.url}"
@@ -172,6 +171,7 @@ class SecondActivity : AppCompatActivity() {
etApiUrl.setText(config.url)
etApiKey.setText(config.key)
etApiSecretKey.setText(config.secretKey)
etApiModel.setText(config.model)
// 设置编辑状态
editingId = config.id
btnSave.text = "更新配置"