Skip to content

Commit 44c1847

Browse files
YunaiVgitee-org
authored andcommitted
!119 【众测版】合并最新的 Vue3 重构
Merge pull request !119 from 芋道源码/dev
2 parents 2329279 + c461800 commit 44c1847

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+1978
-3002
lines changed

.env.front

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,18 @@ VITE_API_URL=/admin-api
1717

1818
# 打包路径
1919
VITE_BASE_PATH=/
20+
21+
# 项目本地运行端口号, 与.vscode/launch.json配合
22+
VITE_PORT=80
23+
24+
# 是否删除debugger
25+
VITE_DROP_DEBUGGER=false
26+
27+
# 是否删除console.log
28+
VITE_DROP_CONSOLE=false
29+
30+
# 是否sourcemap
31+
VITE_SOURCEMAP=true
32+
33+
# 验证码的开关
34+
VITE_APP_CAPTCHA_ENABLE=false

.vscode/launch.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
25
"version": "0.2.0",
36
"configurations": [
47
{
5-
"name": "Launch debug",
8+
"type": "msedge",
69
"request": "launch",
7-
"type": "chrome",
10+
"name": "Launch Edge against localhost",
811
"url": "http://localhost",
9-
"webRoot": "${workspaceFolder}/src"
12+
"webRoot": "${workspaceFolder}/src",
13+
"sourceMaps": true
1014
}
1115
]
1216
}

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
| [TypeScript](https://www.typescriptlang.org/docs/) | JavaScript 的超集 | 4.9.5 |
4343
| [pinia](https://pinia.vuejs.org/) | Vue 存储库 替代 vuex5 | 2.0.33 |
4444
| [vueuse](https://vueuse.org/) | 常用工具集 | 9.13.0 |
45-
| [vxe-table](https://vxetable.cn/) | Vue 最强表单 | 4.3.10 |
4645
| [vue-i18n](https://kazupon.github.io/vue-i18n/zh/introduction.html/) | 国际化 | 9.2.2 |
4746
| [vue-router](https://router.vuejs.org/) | Vue 路由 | 4.1.6 |
4847
| [windicss](https://cn.windicss.org/) | 下一代工具优先的 CSS 框架 | 3.5.6 |

build/vite/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ export function createVitePlugins() {
9898
deleteOriginFile: false //压缩后是否删除源文件
9999
}),
100100
ViteEjsPlugin(),
101-
topLevelAwait({ // https://juejin.cn/post/7152191742513512485
101+
topLevelAwait({
102+
// https://juejin.cn/post/7152191742513512485
102103
// The export name of top-level await promise for each chunk module
103104
promiseExportName: '__tla',
104105
// The function to generate import names of top-level await promise in each chunk module

build/vite/optimize.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ const include = [
1818
'lodash-es',
1919
'nprogress',
2020
'animate.css',
21-
'vxe-table',
22-
'vxe-table/es/style',
23-
'vxe-table/lib/locale/lang/zh-CN',
24-
'vxe-table/lib/locale/lang/en-US',
2521
'web-storage-cache',
2622
'@iconify/iconify',
2723
'@vueuse/core',

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@
6868
"vue-router": "^4.1.6",
6969
"vue-types": "^5.0.2",
7070
"vuedraggable": "^4.1.0",
71-
"vxe-table": "^4.3.11",
7271
"web-storage-cache": "^1.1.1",
7372
"xe-utils": "^3.5.7",
7473
"xml-js": "^1.6.11"

src/api/pay/merchant/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ export const getMerchant = (id: number) => {
3939
}
4040

4141
// 根据商户名称搜索商户列表
42-
export const getMerchantListByName = (name: string) => {
42+
export const getMerchantListByName = (name?: string) => {
4343
return request.get({
44-
url: '/pay/merchant/list-by-name?id=',
44+
url: '/pay/merchant/list-by-name',
4545
params: {
4646
name: name
4747
}

src/api/pay/order/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ export const getOrder = async (id: number) => {
8888
return await request.get({ url: '/pay/order/get?id=' + id })
8989
}
9090

91+
// 获得支付订单的明细
92+
export const getOrderDetail = async (id: number) => {
93+
return await request.get({ url: '/pay/order/get-detail?id=' + id })
94+
}
95+
9196
// 新增支付订单
9297
export const createOrder = async (data: OrderVO) => {
9398
return await request.post({ url: '/pay/order/create', data })

src/components/Icon/src/IconSelect.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ watch(
9595
return props.modelValue
9696
},
9797
() => {
98-
if (props.modelValue) {
98+
if (props.modelValue && props.modelValue.contains(':')) {
9999
currentActiveType.value = props.modelValue.substring(0, props.modelValue.indexOf(':') + 1)
100100
icon.value = props.modelValue.substring(props.modelValue.indexOf(':') + 1)
101101
}

src/components/XModal/index.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)