diff --git a/.env.admin-build b/.env.admin-build new file mode 100644 index 000000000..ea9841a42 --- /dev/null +++ b/.env.admin-build @@ -0,0 +1,20 @@ +# 名称 +VITE_GLOB_APP_TITLE=DaxPay运营端 + +# 压缩方式 +VITE_BUILD_COMPRESS='gzip' + +# 发布路径 +VITE_PUBLIC_PATH=/ + +# 接口地址 +VITE_GLOB_API_URL=/admin + +# 接口前缀 +VITE_GLOB_API_URL_PREFIX = + +# 终端类型 +VITE_GLOB_APP_CLIENT=dax-pay-admin + +# 超时时间 +VITE_GLOB_API_TIMEOUT=30000 diff --git a/.env.merchant-build b/.env.merchant-build new file mode 100644 index 000000000..58dbce729 --- /dev/null +++ b/.env.merchant-build @@ -0,0 +1,20 @@ +# 名称 +VITE_GLOB_APP_TITLE=DaxPay商户管理端 + +# 压缩方式 +VITE_BUILD_COMPRESS='gzip' + +# 发布路径 +VITE_PUBLIC_PATH=/ + +# 接口地址 +VITE_GLOB_API_URL=/merchant + +# 接口前缀 +VITE_GLOB_API_URL_PREFIX= + +# 终端类型 +VITE_GLOB_APP_CLIENT=dax-pay-merchant + +# 超时时间 +VITE_GLOB_API_TIMEOUT=30000 diff --git a/README.md b/README.md index 9d543d4bf..1815d9a8f 100644 --- a/README.md +++ b/README.md @@ -1 +1,13 @@ # DaxPay多商户前端 + +## 简绍 +vite5 + vue3.4 + vben admin2 + antd vue4 搭建 + +## 启动命令 + +```shell +# 运营管理端 +pnpm vite --mode admin +# 商户端 +pnpm vite --mode merchant +``` diff --git a/package.json b/package.json index 933ecbb05..4d5e9667c 100644 --- a/package.json +++ b/package.json @@ -6,9 +6,9 @@ "type": "module", "scripts": { "bootstrap": "pnpm install", - "build:analyze": "cross-env NODE_OPTIONS=--max-old-space-size=8192 pnpm vite build --mode admin", + "build:analyze": "cross-env NODE_OPTIONS=--max-old-space-size=8192 pnpm vite build --mode admin-build", "build:admin": "cross-env NODE_OPTIONS=--max-old-space-size=8192 pnpm vite build --mode admin", - "build:merchant": "cross-env NODE_OPTIONS=--max-old-space-size=8192 pnpm vite build --mode merchant", + "build:merchant": "cross-env NODE_OPTIONS=--max-old-space-size=8192 pnpm vite build --mode merchant-build", "dev:admin": "pnpm vite --mode admin", "dev:merchant": "pnpm vite --mode merchant", "preinstall": "npx only-allow pnpm", diff --git a/src/router/routes/modules/about.ts b/src/router/routes/modules/about.ts deleted file mode 100644 index 7c8420901..000000000 --- a/src/router/routes/modules/about.ts +++ /dev/null @@ -1,30 +0,0 @@ -import type { AppRouteModule } from '@/router/types' - -import { LAYOUT } from '@/router/constant' - -const about: AppRouteModule = { - path: '/about', - name: 'About', - component: LAYOUT, - redirect: '/about/index', - meta: { - hideChildrenMenu: true, - icon: 'simple-icons:aboutdotme', - title: '关于', - orderNo: 100000, - }, - children: [ - { - path: 'index', - name: 'AboutPage', - component: () => import('@/views/sys/about/index.vue'), - meta: { - title: '关于', - icon: 'simple-icons:aboutdotme', - hideMenu: true, - }, - }, - ], -} - -export default about diff --git a/src/router/routes/project.ts b/src/router/routes/project.ts index 816e4a23d..bbf9fb051 100644 --- a/src/router/routes/project.ts +++ b/src/router/routes/project.ts @@ -1,7 +1,6 @@ import { AppRouteModule } from '@/router/types' import { LAYOUT } from '@/router/constant' -const IFrame = () => import('@/views/sys/iframe/FrameBlank.vue') /** * 位于主框架内的页面, 通常需要登录 */ @@ -21,16 +20,7 @@ export const INTERNAL: AppRouteModule = { // meta: { title: '个人设置' }, // }, { - path: '/antv', - name: 'Antv', - component: IFrame, - meta: { - frameSrc: 'https://www.antdv.com/docs/vue/introduce-cn/', - title: 'antv', - }, - }, - { - path: '/about', + path: '/about/index', name: 'AboutPage', component: () => import('@/views/sys/about/index.vue'), meta: { title: '关于' }, diff --git a/src/views/baseapi/log/operate/OperateLog.api.ts b/src/views/baseapi/log/operate/OperateLog.api.ts index 3e51ad5db..21f165eab 100644 --- a/src/views/baseapi/log/operate/OperateLog.api.ts +++ b/src/views/baseapi/log/operate/OperateLog.api.ts @@ -41,7 +41,7 @@ export interface OperateLog extends BaseEntity { // 操作人员id operateId?: number // 操作人员账号 - username?: string + account?: string // 业务类型 businessType?: string // 请求方法 diff --git a/src/views/baseapi/log/operate/OperateLogInfo.vue b/src/views/baseapi/log/operate/OperateLogInfo.vue index ea447d461..03aaa52c6 100644 --- a/src/views/baseapi/log/operate/OperateLogInfo.vue +++ b/src/views/baseapi/log/operate/OperateLogInfo.vue @@ -30,7 +30,7 @@ let confirmLoading = ref(false) let schema = [ { field: 'id', label: '主键' }, - { field: 'username', label: '操作人员账号' }, + { field: 'account', label: '操作账号' }, { field: 'title', label: '操作模块' }, { field: 'client', diff --git a/src/views/baseapi/log/operate/OperateLogList.vue b/src/views/baseapi/log/operate/OperateLogList.vue index 9959f7c12..7f5c67423 100644 --- a/src/views/baseapi/log/operate/OperateLogList.vue +++ b/src/views/baseapi/log/operate/OperateLogList.vue @@ -26,7 +26,7 @@ - +