mirror of
https://github.com/RockChinQ/QChatGPT.git
synced 2024-11-16 11:42:44 +08:00
perf: settings 页面的一些提示
This commit is contained in:
parent
c3dfbb64a6
commit
5f998a0852
|
@ -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 () => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user