diff --git a/project/biaopin/AppCopilotConfig/ccList.vue b/project/biaopin/AppCopilotConfig/ccList.vue index 506eee91..2cb92505 100644 --- a/project/biaopin/AppCopilotConfig/ccList.vue +++ b/project/biaopin/AppCopilotConfig/ccList.vue @@ -41,7 +41,7 @@ export default { }, handleAdd(row = {}) { const {appIconUrl: url, fileId} = row - this.form = this.$copy({...row, appIconUrl: url ? [{url, fileId}] : []}) + this.form = this.$copy({...row, appIconUrl: url ? [{url, id: fileId}] : []}) this.dialog = true // this.$router.push({hash: "#add", query: {id}}) }, @@ -73,7 +73,7 @@ export default { }, submit() { this.$refs.form.validate().then(() => { - const {appIconUrl} = this.form, {url, id:fileId} = appIconUrl.at(0) || {} + const {appIconUrl} = this.form, {url, id: fileId} = appIconUrl.at(0) || {} this.instance.post("/app/appaiconfiginfo/addOrUpdate", {...this.form, appIconUrl: url, fileId}).then(res => { if (res?.code == '0') { this.$message.success("提亀成功!")