From e8dd6758a30fa41e9537123eda15185a965c8f06 Mon Sep 17 00:00:00 2001 From: XinWei <2718030729@qq.com> Date: Thu, 22 Aug 2024 11:54:42 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8E=AF=E5=A2=83=E4=BF=AE=E6=94=B9=E5=92=8C?= =?UTF-8?q?=E4=B8=BB=E9=A1=B5=E5=9B=BE=E7=89=87=E5=8A=A0=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.local | 2 +- .env.prod | 9 +- src/api/login/index.ts | 2 +- src/router/index.ts | 2 +- src/views/Home/Index.vue | 633 ++++++++++++++++++++------------------- 5 files changed, 326 insertions(+), 322 deletions(-) diff --git a/.env.local b/.env.local index 005d2f0d..bd675c19 100644 --- a/.env.local +++ b/.env.local @@ -24,7 +24,7 @@ VITE_DROP_CONSOLE=false VITE_SOURCEMAP=false # 打包路径 -VITE_BASE_PATH=/ +VITE_BASE_PATH=/admin # 商城H5会员端域名 VITE_MALL_H5_DOMAIN='http://localhost:3000' diff --git a/.env.prod b/.env.prod index 842ba616..3851d39d 100644 --- a/.env.prod +++ b/.env.prod @@ -4,12 +4,12 @@ NODE_ENV=production VITE_DEV=false # 请求路径 -VITE_BASE_URL='http://localhost:48080' +VITE_BASE_URL='https://mt.ptzykjgs.com' # 文件上传类型:server - 后端上传, client - 前端直连上传,仅支持S3服务 VITE_UPLOAD_TYPE=server # 上传路径 -VITE_UPLOAD_URL='http://localhost:48080/admin-api/infra/file/upload' +VITE_UPLOAD_URL='https://mt.ptzykjgs.com/admin-api/infra/file/upload' # 接口地址 VITE_API_URL=/admin-api @@ -24,10 +24,13 @@ VITE_DROP_CONSOLE=true VITE_SOURCEMAP=false # 打包路径 -VITE_BASE_PATH=/ +VITE_BASE_PATH=/admin # 输出路径 VITE_OUT_DIR=dist-prod # 商城H5会员端域名 VITE_MALL_H5_DOMAIN='http://mall.yudao.iocoder.cn' + +# 验证码的开关 +VITE_APP_CAPTCHA_ENABLE=false diff --git a/src/api/login/index.ts b/src/api/login/index.ts index ef86563b..c68e28ed 100644 --- a/src/api/login/index.ts +++ b/src/api/login/index.ts @@ -72,7 +72,7 @@ export const socialAuthRedirect = (type: number, redirectUri: string) => { } // 获取验证图片以及 token export const getCode = (data) => { - return request.postOriginal({ url: 'system/captcha/get', data }) + // return request.postOriginal({ url: 'system/captcha/get', data }) } // 滑动或者点选验证 diff --git a/src/router/index.ts b/src/router/index.ts index 8f66ca31..61299025 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -5,7 +5,7 @@ import remainingRouter from './modules/remaining' // 创建路由实例 const router = createRouter({ - history: createWebHistory(), // createWebHashHistory URL带#,createWebHistory URL不带# + history: createWebHistory("/admin"), // createWebHashHistory URL带#,createWebHistory URL不带# strict: true, routes: remainingRouter as RouteRecordRaw[], scrollBehavior: () => ({ left: 0, top: 0 }) diff --git a/src/views/Home/Index.vue b/src/views/Home/Index.vue index 38a38562..46cb603b 100644 --- a/src/views/Home/Index.vue +++ b/src/views/Home/Index.vue @@ -22,32 +22,17 @@