Skip to content

Commit 9b4c358

Browse files
奇淼(piexlmaxbypanghu
andauthored
放弃vuex改用pinia (#872)
Co-authored-by: bypanghu <[email protected]>
1 parent 30e9e55 commit 9b4c358

Some content is hidden

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

60 files changed

+672
-909
lines changed

web/.env.development

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
ENV = 'development'
2-
32
VITE_CLI_PORT = 8080
43
VITE_SERVER_PORT = 8888
54
VITE_BASE_API = /api

web/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,14 @@
1919
"marked": "^2.0.0",
2020
"mitt": "^3.0.0",
2121
"path": "^0.12.7",
22+
"pinia": "^2.0.9",
2223
"qs": "^6.8.0",
2324
"quill": "^1.3.7",
2425
"screenfull": "^5.0.2",
2526
"script-ext-html-webpack-plugin": "^2.1.4",
2627
"spark-md5": "^3.0.1",
2728
"vue": "^3.2.25",
28-
"vue-router": "^4.0.0-0",
29-
"vuex": "^4.0.0-0",
30-
"vuex-persist": "^2.1.0"
29+
"vue-router": "^4.0.0-0"
3130
},
3231
"devDependencies": {
3332
"@vitejs/plugin-legacy": "^1.4.4",

web/src/api/api.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import service from '@/utils/request'
2-
32
// @Tags api
43
// @Summary 分页获取角色列表
54
// @Security ApiKeyAuth

web/src/api/authority.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import service from '@/utils/request'
2-
32
// @Router /authority/getAuthorityList [post]
43
export const getAuthorityList = (data) => {
54
return service({

web/src/api/breakpoint.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import service from '@/utils/request'
2-
32
// @Summary 设置角色资源权限
43
// @Security ApiKeyAuth
54
// @accept application/json
@@ -17,12 +16,12 @@ export const findFile = (params) => {
1716
}
1817

1918
export const breakpointContinue = (data) => {
20-
return service({
21-
url: '/fileUploadAndDownload/breakpointContinue',
22-
method: 'post',
23-
headers: { 'Content-Type': 'multipart/form-data' },
24-
data
25-
})
19+
return service({
20+
url: '/fileUploadAndDownload/breakpointContinue',
21+
method: 'post',
22+
headers: { 'Content-Type': 'multipart/form-data' },
23+
data
24+
})
2625
}
2726

2827
export const breakpointContinueFinish = (params) => {

web/src/api/casbin.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import service from '@/utils/request'
2-
32
// @Tags authority
43
// @Summary 更改角色api权限
54
// @Security ApiKeyAuth

web/src/api/customer.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import service from '@/utils/request'
2-
32
// @Tags SysApi
43
// @Summary 删除客户
54
// @Security ApiKeyAuth

web/src/api/email.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import service from '@/utils/request'
2-
32
// @Tags email
43
// @Summary 发送测试邮件
54
// @Security ApiKeyAuth

web/src/api/fileUploadAndDownload.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import service from '@/utils/request'
2-
32
// @Tags FileUploadAndDownload
43
// @Summary 分页文件列表
54
// @Security ApiKeyAuth

web/src/api/initdb.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import service from '@/utils/request'
2-
32
// @Tags InitDB
43
// @Summary 初始化用户数据库
54
// @Produce application/json

0 commit comments

Comments
 (0)