From 2d561982f77d1aa441905d22342eaaacae2a4054 Mon Sep 17 00:00:00 2001 From: pany <939630029@qq.com> Date: Fri, 21 Jul 2023 15:50:23 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=88=87=E6=8D=A2=20mock=20api=20?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 3 ++- .env.staging | 3 ++- src/App.vue | 12 ------------ src/utils/service.ts | 14 +++++++++++--- vite.config.ts | 3 ++- 5 files changed, 17 insertions(+), 18 deletions(-) diff --git a/.env.production b/.env.production index 93d3a1b0..ec4f8d0c 100644 --- a/.env.production +++ b/.env.production @@ -1,7 +1,8 @@ # 自定义的环境变量(命名必须以 VITE_ 开头) ## 后端接口公共路径(如果解决跨域问题采用 CORS 就需要写全路径) -VITE_BASE_API = 'https://mock.mengxuegu.com/mock/63218b5fb4c53348ed2bc212/api/v1' +# VITE_BASE_API = 'https://mock.mengxuegu.com/mock/63218b5fb4c53348ed2bc212/api/v1' +VITE_BASE_API = 'https://www.fastmock.site/mock/761e2dda2b8890ab86c928a74e8f6538/api/v1' ## 路由模式 hash 或 html5 VITE_ROUTER_HISTORY = 'hash' diff --git a/.env.staging b/.env.staging index 93d3a1b0..ec4f8d0c 100644 --- a/.env.staging +++ b/.env.staging @@ -1,7 +1,8 @@ # 自定义的环境变量(命名必须以 VITE_ 开头) ## 后端接口公共路径(如果解决跨域问题采用 CORS 就需要写全路径) -VITE_BASE_API = 'https://mock.mengxuegu.com/mock/63218b5fb4c53348ed2bc212/api/v1' +# VITE_BASE_API = 'https://mock.mengxuegu.com/mock/63218b5fb4c53348ed2bc212/api/v1' +VITE_BASE_API = 'https://www.fastmock.site/mock/761e2dda2b8890ab86c928a74e8f6538/api/v1' ## 路由模式 hash 或 html5 VITE_ROUTER_HISTORY = 'hash' diff --git a/src/App.vue b/src/App.vue index 77b3ebd4..c53e37cc 100644 --- a/src/App.vue +++ b/src/App.vue @@ -38,18 +38,6 @@ ElNotification({ position: "bottom-right", offset: 150 }) -ElNotification({ - title: "服务挂了", - type: "error", - message: h( - "a", - { style: "color: teal", target: "_blank", href: "https://github.com/un-pany/v3-admin-vite/issues/92" }, - "近期 API 服务不太稳定,请等我更换服务(可以加交流群第一时间获取进度),如果急需登录可以点击这里自己模拟一下数据" - ), - duration: 0, - position: "bottom-right", - offset: 300 -})