From c635d78b479510ebe2556a420948effcd30a0731 Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期六, 21 十二月 2024 18:40:43 +0800 Subject: [PATCH] 新建德森项目分支 --- zy-asrs-flow/config/proxy.ts | 88 ++++++++++++++++++++++---------------------- 1 files changed, 44 insertions(+), 44 deletions(-) diff --git a/zy-asrs-flow/config/proxy.ts b/zy-asrs-flow/config/proxy.ts index 1b568e2..21ef773 100644 --- a/zy-asrs-flow/config/proxy.ts +++ b/zy-asrs-flow/config/proxy.ts @@ -1,44 +1,44 @@ -/** - * @name 浠g悊鐨勯厤缃� - * @see 鍦ㄧ敓浜х幆澧� 浠g悊鏄棤娉曠敓鏁堢殑锛屾墍浠ヨ繖閲屾病鏈夌敓浜х幆澧冪殑閰嶇疆 - * ------------------------------- - * The agent cannot take effect in the production environment - * so there is no configuration of the production environment - * For details, please see - * https://pro.ant.design/docs/deploy - * - * @doc https://umijs.org/docs/guides/proxy - */ -export default { - // 濡傛灉闇�瑕佽嚜瀹氫箟鏈湴寮�鍙戞湇鍔″櫒 璇峰彇娑堟敞閲婃寜闇�璋冩暣 - // dev: { - // // localhost:8000/api/** -> https://preview.pro.ant.design/api/** - // '/api/': { - // // 瑕佷唬鐞嗙殑鍦板潃 - // target: 'https://preview.pro.ant.design', - // // 閰嶇疆浜嗚繖涓彲浠ヤ粠 http 浠g悊鍒� https - // // 渚濊禆 origin 鐨勫姛鑳藉彲鑳介渶瑕佽繖涓紝姣斿 cookie - // changeOrigin: true, - // }, - // }, - - /** - * @name 璇︾粏鐨勪唬鐞嗛厤缃� - * @doc https://github.com/chimurai/http-proxy-middleware - */ - test: { - // localhost:8000/api/** -> https://preview.pro.ant.design/api/** - '/api/': { - target: 'https://proapi.azurewebsites.net', - changeOrigin: true, - pathRewrite: { '^': '' }, - }, - }, - pre: { - '/api/': { - target: 'your pre url', - changeOrigin: true, - pathRewrite: { '^': '' }, - }, - }, -}; +/** + * @name 浠g悊鐨勯厤缃� + * @see 鍦ㄧ敓浜х幆澧� 浠g悊鏄棤娉曠敓鏁堢殑锛屾墍浠ヨ繖閲屾病鏈夌敓浜х幆澧冪殑閰嶇疆 + * ------------------------------- + * The agent cannot take effect in the production environment + * so there is no configuration of the production environment + * For details, please see + * https://pro.ant.design/docs/deploy + * + * @doc https://umijs.org/docs/guides/proxy + */ +export default { + // 濡傛灉闇�瑕佽嚜瀹氫箟鏈湴寮�鍙戞湇鍔″櫒 璇峰彇娑堟敞閲婃寜闇�璋冩暣 + // dev: { + // // localhost:8000/api/** -> https://preview.pro.ant.design/api/** + // '/api/': { + // // 瑕佷唬鐞嗙殑鍦板潃 + // target: 'https://preview.pro.ant.design', + // // 閰嶇疆浜嗚繖涓彲浠ヤ粠 http 浠g悊鍒� https + // // 渚濊禆 origin 鐨勫姛鑳藉彲鑳介渶瑕佽繖涓紝姣斿 cookie + // changeOrigin: true, + // }, + // }, + + /** + * @name 璇︾粏鐨勪唬鐞嗛厤缃� + * @doc https://github.com/chimurai/http-proxy-middleware + */ + test: { + // localhost:8000/api/** -> https://preview.pro.ant.design/api/** + '/api/': { + target: 'https://proapi.azurewebsites.net', + changeOrigin: true, + pathRewrite: { '^': '' }, + }, + }, + pre: { + '/api/': { + target: 'your pre url', + changeOrigin: true, + pathRewrite: { '^': '' }, + }, + }, +}; -- Gitblit v1.9.1