mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2025-12-16 16:42:50 +00:00
1
This commit is contained in:
parent
5a77ce7f12
commit
b641fed940
@ -288,7 +288,7 @@ import {
|
|||||||
import { ElMessage, ElMessageBox } from "element-plus";
|
import { ElMessage, ElMessageBox } from "element-plus";
|
||||||
import { assign, isEmpty } from "lodash-es";
|
import { assign, isEmpty } from "lodash-es";
|
||||||
import { useMenu, useAi } from "../hooks";
|
import { useMenu, useAi } from "../hooks";
|
||||||
import { isDev } from "/@/config";
|
import { config, isDev } from "/@/config";
|
||||||
import { useForm } from "@cool-vue/crud";
|
import { useForm } from "@cool-vue/crud";
|
||||||
import * as monaco from "monaco-editor";
|
import * as monaco from "monaco-editor";
|
||||||
import { sleep, storage } from "/@/cool/utils";
|
import { sleep, storage } from "/@/cool/utils";
|
||||||
@ -316,16 +316,16 @@ monaco.editor.defineTheme("ai-code--dark", {
|
|||||||
|
|
||||||
// 表单
|
// 表单
|
||||||
const form = reactive({
|
const form = reactive({
|
||||||
entity: "收货地址",
|
entity: "",
|
||||||
module: "user",
|
module: "",
|
||||||
other: "",
|
other: "",
|
||||||
column: "用户ID、用户名、收货人、手机号、收货地址、是否默认"
|
column: ""
|
||||||
});
|
});
|
||||||
|
|
||||||
// 执行步骤
|
// 执行步骤
|
||||||
const step = reactive({
|
const step = reactive({
|
||||||
loading: false,
|
loading: false,
|
||||||
value: "coding",
|
value: "start",
|
||||||
list: ["start", "enter", "form", "coding"],
|
list: ["start", "enter", "form", "coding"],
|
||||||
|
|
||||||
async next() {
|
async next() {
|
||||||
@ -400,6 +400,7 @@ const code = reactive({
|
|||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
form.column = res.columns;
|
form.column = res.columns;
|
||||||
|
form.entity = res.module;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -890,7 +891,7 @@ function toDoc() {
|
|||||||
|
|
||||||
// 返回
|
// 返回
|
||||||
function toBack() {
|
function toBack() {
|
||||||
ElMessageBox.confirm("确定要返回吗?", "提示", {
|
ElMessageBox.confirm(`确定要返回 ${config.app.name} 吗?`, "提示", {
|
||||||
type: "warning"
|
type: "warning"
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user