From 363130ddd06d25ec1ad33a1a5206afadb5250795 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A1=9C=E8=8F=AF?= Date: Fri, 3 Mar 2023 10:19:41 +0800 Subject: [PATCH] DEBUG url --- nuxt.config.ts | 2 +- server/api/drawing.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index bcc8d36..eca0a10 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -22,7 +22,7 @@ export default defineNuxtConfig({ target: 'http://106.15.192.42:3000/api/drawing' }, '/api/text': { - target: 'http://139.224.128.24:7861//api/text_to_text' + target: 'http://139.224.128.24:7861/api/text_to_text' }, }, } diff --git a/server/api/drawing.ts b/server/api/drawing.ts index 7ad6c7d..263d038 100644 --- a/server/api/drawing.ts +++ b/server/api/drawing.ts @@ -25,7 +25,7 @@ export default defineEventHandler(async event => { const translate = async (text: string, callback:Function) => { if (/[\u4E00-\u9FA5\uF900-\uFA2D]/.test(text)) { text = encodeURIComponent(text) - const {data} = await axios.get(`http://139.224.128.24:7861//api/text_to_text?zh=${text}`) + const {data} = await axios.get(`http://139.224.128.24:7861/api/text_to_text?zh=${text}`) text = data.en } if (callback) callback(text)