From 0be96b406b8715ba9aaf7659511a85786eb09398 Mon Sep 17 00:00:00 2001 From: icssoa <2570063477@qq.com> Date: Fri, 10 Mar 2023 10:37:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E5=B8=836.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cool/config/proxy.ts | 6 ------ src/modules/base/pages/login/components/captcha.vue | 2 +- src/modules/magic/hooks/ai-code.ts | 4 +--- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/cool/config/proxy.ts b/src/cool/config/proxy.ts index e351c15..9d6c263 100644 --- a/src/cool/config/proxy.ts +++ b/src/cool/config/proxy.ts @@ -9,11 +9,5 @@ export const proxy = { target: "https://show.cool-admin.com", changeOrigin: true, rewrite: (path: string) => path.replace(/^\/prod/, "/api") - }, - - "/ap/": { - target: "https://ap.cool-js.cloud", - changeOrigin: true, - rewrite: (path: string) => path.replace(/^\/ap/, "") } }; diff --git a/src/modules/base/pages/login/components/captcha.vue b/src/modules/base/pages/login/components/captcha.vue index 3fd30d0..1453e9c 100644 --- a/src/modules/base/pages/login/components/captcha.vue +++ b/src/modules/base/pages/login/components/captcha.vue @@ -26,7 +26,7 @@ function refresh() { height: 40, width: 150 }) - .then(({ captchaId, data }: any) => { + .then(({ captchaId, data }) => { if (data.includes(";base64,")) { base64.value = data; } else { diff --git a/src/modules/magic/hooks/ai-code.ts b/src/modules/magic/hooks/ai-code.ts index 0901275..69ab92d 100644 --- a/src/modules/magic/hooks/ai-code.ts +++ b/src/modules/magic/hooks/ai-code.ts @@ -7,9 +7,7 @@ import { storage, useCool } from "/@/cool"; export function useChatGPT() { const { route, router } = useCool(); - const apiKey = ref( - storage.get("chatgpt.apiKey") || "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" - ); + const apiKey = ref(storage.get("chatgpt.apiKey") || ""); // 余额 const balance = reactive({