mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-12 22:00:57 +00:00
perf: settings 页面的一些提示
This commit is contained in:
@@ -218,6 +218,7 @@ const saveAndApply = () => {
|
|||||||
}
|
}
|
||||||
fetchCurrentManagerData(currentManager.value.name)
|
fetchCurrentManagerData(currentManager.value.name)
|
||||||
modified.value = false
|
modified.value = false
|
||||||
|
snackbar.success('应用成功')
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
snackbar.error(error)
|
snackbar.error(error)
|
||||||
})
|
})
|
||||||
@@ -229,10 +230,14 @@ const reset = () => {
|
|||||||
currentManagerDataEditorString.value = JSON.stringify(currentManager.value.data, null, 2)
|
currentManagerDataEditorString.value = JSON.stringify(currentManager.value.data, null, 2)
|
||||||
isJsonValid.value = true
|
isJsonValid.value = true
|
||||||
errorMessage.value = ''
|
errorMessage.value = ''
|
||||||
|
modified.value = false
|
||||||
|
snackbar.success('重置成功')
|
||||||
} else {
|
} else {
|
||||||
fetchCurrentManagerData(currentManager.value.name)
|
fetchCurrentManagerData(currentManager.value.name).then(() => {
|
||||||
|
snackbar.success('重置成功')
|
||||||
|
modified.value = false
|
||||||
|
})
|
||||||
}
|
}
|
||||||
modified.value = false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user