Skip to content

Commit deef8e6

Browse files
author
piexlmax
committed
修复了api下存在的bug,部署模式添加https指导
1 parent 15272bb commit deef8e6

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

web/.env.production

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +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
88
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)