From 2ba1318212ecf4b92df319119b58da2a6fb19065 Mon Sep 17 00:00:00 2001 From: DaxPay Date: Mon, 23 Sep 2024 19:27:15 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E5=A4=9A=E5=95=86=E6=88=B7=E9=80=82?= =?UTF-8?q?=E9=85=8D=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- .env.production | 2 +- README.md | 8 +- build/vite/plugin/mock.ts | 2 +- index.html | 5 +- package.json | 97 +- pnpm-lock.yaml | 11176 ++++++++++++++++++-------------- src/api/common/FileUpload.ts | 86 - src/api/system/user.ts | 2 +- src/enums/cacheEnum.ts | 14 - src/enums/pageEnum.ts | 2 - src/hooks/setting/index.ts | 4 +- src/hooks/web/useECharts.ts | 122 - src/router/base.ts | 9 - src/router/business.ts | 4 +- src/router/demo.ts | 6 +- src/router/index.ts | 3 +- src/utils/domUtils.ts | 2 +- src/utils/env.ts | 2 +- src/utils/http/axios/Axios.ts | 2 - src/utils/http/axios/index.ts | 71 +- src/utils/index.ts | 8 +- src/utils/lib/echarts.ts | 57 - types/auto-imports.d.ts | 4 + types/axios.d.ts | 18 +- types/config.d.ts | 28 +- types/global.d.ts | 74 +- types/index.d.ts | 26 +- types/modules.d.ts | 7 +- types/web.d.ts | 18 +- vite.config.ts | 4 +- 31 files changed, 6459 insertions(+), 5406 deletions(-) delete mode 100644 src/api/common/FileUpload.ts delete mode 100644 src/enums/cacheEnum.ts delete mode 100644 src/hooks/web/useECharts.ts delete mode 100644 src/utils/lib/echarts.ts 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) })()