From e96322043649fdc8fc02d886ac19cf8342a43248 Mon Sep 17 00:00:00 2001 From: yuxc <yuxc@vci-tech.com> Date: 星期一, 04 十一月 2024 11:37:13 +0800 Subject: [PATCH] 在登录时判断用户密码过期需要修改时,由于还未登录去获取当前Session的用户时,是null,所以导致报错,增加如果为空,直接使用界面传的用户。 --- Source/plt-web/plt-web-ui/src/api/queryTemplate/linkTypeQuery.js | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/plt-web/plt-web-ui/src/api/queryTemplate/linkTypeQuery.js b/Source/plt-web/plt-web-ui/src/api/queryTemplate/linkTypeQuery.js index e425620..2e83fb8 100644 --- a/Source/plt-web/plt-web-ui/src/api/queryTemplate/linkTypeQuery.js +++ b/Source/plt-web/plt-web-ui/src/api/queryTemplate/linkTypeQuery.js @@ -27,13 +27,14 @@ } // 瀵煎嚭 -export function expLinkTemplate (params) { +export function expLinkTemplate (qtNames) { return request({ url: '/api/templateController/expLinkTemplate', method: 'post', - headers: {'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'}, responseType: 'blob', - data:params + data:{ + qtNames + } }) } -- Gitblit v1.9.3