From c212587487446e1bcd34ff39e5f838c8af252331 Mon Sep 17 00:00:00 2001 From: zhouxin Date: Wed, 21 Dec 2022 16:56:22 +0800 Subject: [PATCH] =?UTF-8?q?(*)=E5=9F=B9=E8=AE=AD=E8=B5=84=E6=BA=90?= =?UTF-8?q?=E5=BA=93=EF=BC=9A=E9=99=84=E4=BB=B6=E4=B8=8A=E4=BC=A0=E3=80=81?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E9=85=8D=E7=BD=AE=E8=B0=83=E6=95=B4=EF=BC=8C?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=80=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/launch.json | 8 ++++---- api/app/lib/controllers/resourceRepository/index.js | 2 +- web/package.json | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index f77a251..53726d2 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -23,11 +23,11 @@ // 测试 // "--apiEmisUrl http://10.8.30.161:1111", // "--redisHost 10.8.30.112", - "--qnak XuDgkao6cL0HidoMAPnA5OB10Mc_Ew08mpIfRJK5", - "--qnsk yewcieZLzKZuDfig0wLZ9if9jKp2P_1jd3CMJPSa", - "--qnbkt dev-hr", + "--qnak 5XrM4wEB9YU6RQwT64sPzzE6cYFKZgssdP5Kj3uu", + "--qnsk w6j2ixR_i-aelc6I7S3HotKIX-ukMzcKmDfH6-M5", + "--qnbkt pep-resource", // "--qndmn http://resources.anxinyun.cn", - "--qndmn http://rjkwed13l.hn-bkt.clouddn.com", + "--qndmn https://pepsource.anxinyun.cn", // 似乎不能传空 先注释 * 2 // "--clickHouseUser ", diff --git a/api/app/lib/controllers/resourceRepository/index.js b/api/app/lib/controllers/resourceRepository/index.js index ee9e074..8da6e42 100644 --- a/api/app/lib/controllers/resourceRepository/index.js +++ b/api/app/lib/controllers/resourceRepository/index.js @@ -130,7 +130,7 @@ async function getResourceFileList(ctx, next) { if (["公司培训资料", "部门培训资料"].includes(type)) { const findObj = { attributes: ["id", "fileType", "fileName", "fileSize", "updateDate", "attachPath"], - order: [["departmentName", "desc"]] + order: [["updateDate", "desc"]] }; if (Number(limit) > 0 && Number(page) >= 0) { findObj.limit = Number(limit); diff --git a/web/package.json b/web/package.json index 6117917..4ceb7c2 100644 --- a/web/package.json +++ b/web/package.json @@ -7,7 +7,7 @@ "test": "mocha", "start-vite": "cross-env NODE_ENV=developmentVite npm run start-params", "start": "cross-env NODE_ENV=development npm run start-params", - "start-params": "node server -p 5700 -u http://localhost:4700 --apiHrUrl http://localhost:4700 -d localhost --webPepUrl http://localhost:5300 --apiEmisUrl http://localhost:4000 --qnak XuDgkao6cL0HidoMAPnA5OB10Mc_Ew08mpIfRJK5 --qnsk yewcieZLzKZuDfig0wLZ9if9jKp2P_1jd3CMJPSa --qnbkt dev-hr --qndmn http://rjkwed13l.hn-bkt.clouddn.com --wkys http://10.8.30.109:14000", + "start-params": "node server -p 5700 -u http://localhost:4700 --apiHrUrl http://localhost:4700 -d localhost --webPepUrl http://localhost:5300 --apiEmisUrl http://localhost:4000 --qnak 5XrM4wEB9YU6RQwT64sPzzE6cYFKZgssdP5Kj3uu --qnsk w6j2ixR_i-aelc6I7S3HotKIX-ukMzcKmDfH6-M5 --qnbkt pep-resource --qndmn https://pepsource.anxinyun.cn --wkys http://10.8.30.109:14000", "deploy": "export NODE_ENV=production&& npm run build && node server", "build-dev": "cross-env NODE_ENV=development&&webpack --config webpack.config.js", "build": "cross-env NODE_ENV=production&&webpack --config webpack.config.prod.js"