From 4fa0398e0eeecea356c067f9041f5ea1febf3938 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Tue, 7 Feb 2023 02:02:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=B7=A8=E5=9F=9F=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/index.js | 4 ++-- src/components/Tinymce/index.vue | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/config/index.js b/config/index.js index b9702285..f033c81c 100644 --- a/config/index.js +++ b/config/index.js @@ -18,7 +18,7 @@ module.exports = { '^/api/m1/xm': '/xm' } }, - /** + '/api/m1/arc': { target: 'http://localhost:7012', changeOrigin: true, @@ -26,7 +26,7 @@ module.exports = { '^/api/m1/arc': '/arc' } }, - + /** '/api/m1/sys': { target: 'http://localhost:7015', changeOrigin: true, diff --git a/src/components/Tinymce/index.vue b/src/components/Tinymce/index.vue index 34d73735..eb94ae32 100644 --- a/src/components/Tinymce/index.vue +++ b/src/components/Tinymce/index.vue @@ -135,7 +135,8 @@ export default { code_dialog_width: 1000, advlist_bullet_styles: "square", advlist_number_styles: "default", - imagetools_cors_hosts: ["www.qingqinkj.com", "codepen.io","www.maimengcloud.com"], + imagetools_cors_hosts: ["www.qingqinkj.com", "codepen.io","www.maimengcloud.com",'http://localhost:8067','http://localhost:8012'], + //imagetools_proxy:'localhost:8067', default_link_target: "_blank", link_title: false, convert_urls: false, @@ -201,7 +202,7 @@ export default { upload(formData).then((res) => { var tips = res.data.tips; if(tips.isOk){ - success(res.data.data.url) + success('http://localhost:8067/api/m1/arc/arc/image/uploadImm/IM1675705794917148.png') }else{ failure(tips.msg) }