From 12714290e961413657472016365d7ce7ad8b7751 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: Mon, 1 Jul 2024 16:42:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=20AI=20=E7=BC=96=E7=A0=81=E3=80=81?= =?UTF-8?q?=E6=96=B0=20AI=20=E7=BC=96=E7=A0=81=E3=80=81=E6=96=B0=20AI=20?= =?UTF-8?q?=E7=BC=96=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 +- src/config/proxy.ts | 4 +- src/modules/helper/components/text.vue | 257 ------------------------- src/modules/helper/config.ts | 1 - src/modules/helper/hooks/menu.ts | 2 - src/modules/helper/views/ai-code.vue | 3 +- 6 files changed, 5 insertions(+), 268 deletions(-) delete mode 100644 src/modules/helper/components/text.vue diff --git a/README.md b/README.md index 24646c0..b7a1972 100644 --- a/README.md +++ b/README.md @@ -42,10 +42,10 @@ ## 安装项目依赖 -推荐使用 `yarn`: +推荐使用 `pnpm`: ```shell -yarn +pnpm i ``` ## 运行应用程序 @@ -53,7 +53,7 @@ yarn 安装过程完成后,运行以下命令启动服务。您可以在浏览器中预览网站 [http://localhost:9000](http://localhost:9000) ```shell -yarn dev +pnpm dev ``` ### 低价服务器 diff --git a/src/config/proxy.ts b/src/config/proxy.ts index 49746b8..9d6c263 100644 --- a/src/config/proxy.ts +++ b/src/config/proxy.ts @@ -1,8 +1,6 @@ export const proxy = { "/dev/": { - // target: "http://127.0.0.1:8001", - target: "http://192.168.0.119:8001", - // target: "https://dev-admin.cool-js.cloud", + target: "http://127.0.0.1:8001", changeOrigin: true, rewrite: (path: string) => path.replace(/^\/dev/, "") }, diff --git a/src/modules/helper/components/text.vue b/src/modules/helper/components/text.vue deleted file mode 100644 index a0c5935..0000000 --- a/src/modules/helper/components/text.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - - diff --git a/src/modules/helper/config.ts b/src/modules/helper/config.ts index dcc0a2e..00a83fa 100644 --- a/src/modules/helper/config.ts +++ b/src/modules/helper/config.ts @@ -4,7 +4,6 @@ import { getRules } from "./utils"; export default (): ModuleConfig => { return { options: { - // host: "/dev" host: "https://service.cool-js.com/api" }, toolbar: { diff --git a/src/modules/helper/hooks/menu.ts b/src/modules/helper/hooks/menu.ts index 8fb9a8e..8cf5815 100644 --- a/src/modules/helper/hooks/menu.ts +++ b/src/modules/helper/hooks/menu.ts @@ -52,8 +52,6 @@ export function useMenu() { }; }); - console.log(data); - // 批量插入权限 service.base.sys.menu.add(perms).then(() => { resolve(() => { diff --git a/src/modules/helper/views/ai-code.vue b/src/modules/helper/views/ai-code.vue index 6a5809b..11142ac 100644 --- a/src/modules/helper/views/ai-code.vue +++ b/src/modules/helper/views/ai-code.vue @@ -272,7 +272,7 @@