mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-29 13:53:55 +08:00
优化了“新增模型配置”
This commit is contained in:
@@ -52,7 +52,7 @@ export default {
|
|||||||
modelName: formData.modelName,
|
modelName: formData.modelName,
|
||||||
isDefault: formData.isDefault ? 1 : 0,
|
isDefault: formData.isDefault ? 1 : 0,
|
||||||
isEnabled: formData.isEnabled ? 1 : 0,
|
isEnabled: formData.isEnabled ? 1 : 0,
|
||||||
configJson: JSON.stringify(formData.configJson),
|
configJson: formData.configJson,
|
||||||
docLink: formData.docLink,
|
docLink: formData.docLink,
|
||||||
remark: formData.remark,
|
remark: formData.remark,
|
||||||
sort: formData.sort || 0
|
sort: formData.sort || 0
|
||||||
|
|||||||
@@ -140,7 +140,7 @@ export default {
|
|||||||
|
|
||||||
this.$emit('confirm', {
|
this.$emit('confirm', {
|
||||||
...this.formData,
|
...this.formData,
|
||||||
provideType: this.formData.supplier,
|
provideCode: this.formData.supplier,
|
||||||
configJson: this.formData.configJson
|
configJson: this.formData.configJson
|
||||||
});
|
});
|
||||||
this.$emit('update:visible', false);
|
this.$emit('update:visible', false);
|
||||||
|
|||||||
@@ -315,11 +315,12 @@ export default {
|
|||||||
handleAddConfirm(newModel) {
|
handleAddConfirm(newModel) {
|
||||||
const params = {
|
const params = {
|
||||||
modelType: this.activeTab,
|
modelType: this.activeTab,
|
||||||
provideCode: newModel.supplier,
|
provideCode: newModel.provideCode,
|
||||||
formData: {
|
formData: {
|
||||||
...newModel,
|
...newModel,
|
||||||
isDefault: newModel.isDefault ? 1 : 0,
|
isDefault: newModel.isDefault ? 1 : 0,
|
||||||
isEnabled: newModel.isEnabled ? 1 : 0
|
isEnabled: newModel.isEnabled ? 1 : 0,
|
||||||
|
configJson: newModel.configJson
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user