From deef8e62ee0aac43db0351224c5f0bdcd2d768a4 Mon Sep 17 00:00:00 2001 From: piexlmax Date: Fri, 31 Dec 2021 03:14:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86api=E4=B8=8B?= =?UTF-8?q?=E5=AD=98=E5=9C=A8=E7=9A=84bug=EF=BC=8C=E9=83=A8=E7=BD=B2?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E6=B7=BB=E5=8A=A0https=E6=8C=87=E5=AF=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/.env.production | 4 ++-- web/src/view/superAdmin/api/api.vue | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/web/.env.production b/web/.env.production index d380f11b..c554890a 100644 --- a/web/.env.production +++ b/web/.env.production @@ -3,6 +3,6 @@ ENV = 'production' VITE_CLI_PORT = 8080 VITE_SERVER_PORT = 8888 VITE_BASE_API = /api -#下方修改为你的线上ip -#VITE_BASE_PATH = http://8.141.61.63 +#下方修改为你的线上ip 如果 https模式下则使用域名 并且配置代理 (不建议上线使用表单生成器) +#VITE_BASE_PATH = http://x.x.x.x VITE_BASE_PATH = https://demo.gin-vue-admin.com diff --git a/web/src/view/superAdmin/api/api.vue b/web/src/view/superAdmin/api/api.vue index 4bb6b685..21436fd6 100644 --- a/web/src/view/superAdmin/api/api.vue +++ b/web/src/view/superAdmin/api/api.vue @@ -228,6 +228,9 @@ export default { // 排序 sortChange({ prop, order }) { if (prop) { + if (prop === 'ID') { + prop = 'id' + } this.searchInfo.orderKey = toSQLLine(prop) this.searchInfo.desc = order === 'descending' } -- GitLab