Skip to content

Commit e10fac4

Browse files
+ Fix the bugs in the api, add https guidance in the deployment mode (PR flipped-aurora#860).
1 parent 7f1c05b commit e10fac4

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

server/source/system/api.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ func (a *api) Initialize() error {
5959
{ApiGroup: "菜单", Method: "POST", Path: "/menu/getMenuAuthority", Description: "获取指定角色menu"},
6060
{ApiGroup: "菜单", Method: "POST", Path: "/menu/addMenuAuthority", Description: "增加menu和角色关联关系"},
6161

62+
{ApiGroup: "分片上传", Method: "POST", Path: "/fileUploadAndDownload/findFile", Description: "寻找目标文件(秒传)"},
63+
{ApiGroup: "分片上传", Method: "POST", Path: "/fileUploadAndDownload/breakpointContinueFinish", Description: "断点续传"},
64+
{ApiGroup: "分片上传", Method: "POST", Path: "/fileUploadAndDownload/removeChunk", Description: "上传完成"},
65+
6266
{ApiGroup: "文件上传与下载", Method: "POST", Path: "/fileUploadAndDownload/upload", Description: "文件上传示例"},
6367
{ApiGroup: "文件上传与下载", Method: "POST", Path: "/fileUploadAndDownload/deleteFile", Description: "删除文件"},
6468
{ApiGroup: "文件上传与下载", Method: "POST", Path: "/fileUploadAndDownload/getFileList", Description: "获取上传文件列表"},

server/source/system/casbin.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ func (c *casbin) Initialize() error {
5454
{PType: "p", V0: "888", V1: "/user/setUserAuthority", V2: "POST"},
5555
{PType: "p", V0: "888", V1: "/user/setUserAuthorities", V2: "POST"},
5656

57+
{PType: "p", V0: "888", V1: "/fileUploadAndDownload/findFile", V2: "GET"},
58+
{PType: "p", V0: "888", V1: "/fileUploadAndDownload/breakpointContinueFinish", V2: "POST"},
59+
{PType: "p", V0: "888", V1: "/fileUploadAndDownload/removeChunk", V2: "POST"},
60+
5761
{PType: "p", V0: "888", V1: "/fileUploadAndDownload/upload", V2: "POST"},
5862
{PType: "p", V0: "888", V1: "/fileUploadAndDownload/deleteFile", V2: "POST"},
5963
{PType: "p", V0: "888", V1: "/fileUploadAndDownload/getFileList", V2: "POST"},

web/.env.production

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ ENV = 'production'
33
VITE_CLI_PORT = 8080
44
VITE_SERVER_PORT = 8888
55
VITE_BASE_API = /api
6-
#下方修改为你的线上ip
7-
VITE_BASE_PATH = http://8.141.61.63
6+
#下方修改为你的线上ip 如果 https模式下则使用域名 并且配置代理 (不建议上线使用表单生成器)
7+
#VITE_BASE_PATH = http://x.x.x.x
8+
VITE_BASE_PATH = https://demo.gin-vue-admin.com

web/src/view/superAdmin/api/api.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,9 @@ export default {
228228
// 排序
229229
sortChange({ prop, order }) {
230230
if (prop) {
231+
if (prop === 'ID') {
232+
prop = 'id'
233+
}
231234
this.searchInfo.orderKey = toSQLLine(prop)
232235
this.searchInfo.desc = order === 'descending'
233236
}

0 commit comments

Comments
 (0)