From b641fed9403c94a71e611670f1163ce8094ffa7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A5=9E=E4=BB=99=E9=83=BD=E6=B2=A1=E7=94=A8?= <615206459@qq.com> Date: Fri, 28 Jun 2024 15:14:50 +0800 Subject: [PATCH] 1 --- src/modules/helper/views/ai-code.vue | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/modules/helper/views/ai-code.vue b/src/modules/helper/views/ai-code.vue index 0c7e03d..5b4056a 100644 --- a/src/modules/helper/views/ai-code.vue +++ b/src/modules/helper/views/ai-code.vue @@ -288,7 +288,7 @@ import { import { ElMessage, ElMessageBox } from "element-plus"; import { assign, isEmpty } from "lodash-es"; import { useMenu, useAi } from "../hooks"; -import { isDev } from "/@/config"; +import { config, isDev } from "/@/config"; import { useForm } from "@cool-vue/crud"; import * as monaco from "monaco-editor"; import { sleep, storage } from "/@/cool/utils"; @@ -316,16 +316,16 @@ monaco.editor.defineTheme("ai-code--dark", { // 表单 const form = reactive({ - entity: "收货地址", - module: "user", + entity: "", + module: "", other: "", - column: "用户ID、用户名、收货人、手机号、收货地址、是否默认" + column: "" }); // 执行步骤 const step = reactive({ loading: false, - value: "coding", + value: "start", list: ["start", "enter", "form", "coding"], async next() { @@ -400,6 +400,7 @@ const code = reactive({ }) .then((res) => { form.column = res.columns; + form.entity = res.module; }); }, @@ -890,7 +891,7 @@ function toDoc() { // 返回 function toBack() { - ElMessageBox.confirm("确定要返回吗?", "提示", { + ElMessageBox.confirm(`确定要返回 ${config.app.name} 吗?`, "提示", { type: "warning" }) .then(() => {