调整toml格式的内容显示与编辑
This commit is contained in:
@@ -228,13 +228,7 @@
|
||||
try {
|
||||
// 验证TOML格式
|
||||
let configObj;
|
||||
try {
|
||||
configObj = toml.parse(this.editedConfig);
|
||||
} catch (e) {
|
||||
this.configError = 'TOML格式错误: ' + e.message;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// 发送到后端保存
|
||||
axios.post('/api/plugins/config/update', {
|
||||
plugin_name: this.selectedPlugin.module_name,
|
||||
|
||||
Reference in New Issue
Block a user