diff --git a/.env.development b/.env.development index 56f0f24..50268d6 100644 --- a/.env.development +++ b/.env.development @@ -21,7 +21,7 @@ VITE_GLOB_UPLOAD_URL = VITE_GLOB_IMG_URL = # 接口前缀 -VITE_GLOB_API_URL_PREFIX = /server +VITE_GLOB_API_URL_PREFIX = / diff --git a/.env.production b/.env.production index 56d1b0b..b04cb05 100644 --- a/.env.production +++ b/.env.production @@ -4,7 +4,7 @@ # 网站根目录(与PC部署在一起, 所以根目录不可以为 /) 和 接口 (server) 前缀 这个是独立部署模式 VITE_PUBLIC_PATH=/h5 -VITE_GLOB_API_URL_PREFIX=/server +VITE_GLOB_API_URL_PREFIX= # 是否删除console VITE_DROP_CONSOLE=true diff --git a/README.md b/README.md index d23446f..675fbb6 100644 --- a/README.md +++ b/README.md @@ -10,14 +10,16 @@ ## 🍒 项目地址 -| 项目 | GITEE | GITHUB | -|---------|---------------------------------------------|-------------------------------------------------| +| 项目 | GITEE | GITHUB | +| ----------- | ------------------------------------------- | ----------------------------------------------- | | 后端地址 | [GITEE](https://gitee.com/dromara/dax-pay) | [GITHUB](https://github.com/dromara/dax-pay) | | Web前端地址 | [GITEE](https://gitee.com/bootx/dax-pay-ui) | [GITHUB](https://github.com/xxm1995/dax-pay-ui) | | H5前端地址 | [GITEE](https://gitee.com/bootx/dax-pay-h5) | [GITHUB](https://github.com/xxm1995/dax-pay-h5) | ## 🏬 系统演示 + ### 管理平台: + > 注:演示账号部分功能修改删除权限未开放。 地址:https://daxpay.demo.bootx.cn @@ -27,6 +29,7 @@ 密码:123456 ### 网关接口 + > 注:接口平台只开放支付网关相关的接口,不开放系统其他接口。 地址: https://daxpay.server.bootx.cn/doc.html @@ -36,6 +39,7 @@ 密码: 123456 ### 收银台演示 + > 请勿大额支付,可以通过后台管理端进行退款 电脑收银台地址: https://daxpay.demo.bootx.cn/#/cashier diff --git a/build/vite/plugin/mock.ts b/build/vite/plugin/mock.ts index 9b79433..90ca34d 100644 --- a/build/vite/plugin/mock.ts +++ b/build/vite/plugin/mock.ts @@ -6,7 +6,7 @@ import { viteMockServe } from 'vite-plugin-mock' export function configMockPlugin(isBuild: boolean, prodMock: boolean) { return viteMockServe({ - ignore: /^\_/, + ignore: /^_/, mockPath: 'mock', localEnabled: !isBuild, prodEnabled: isBuild && prodMock, diff --git a/index.html b/index.html index 99a063f..e0099b1 100644 --- a/index.html +++ b/index.html @@ -19,10 +19,7 @@ } // 设置主题色变量 - document.documentElement.style.setProperty( - '--app-theme-color', - appTheme, - ) + document.documentElement.style.setProperty('--app-theme-color', appTheme) })()