From e0afc7aeb6b1445a8cc9dddf3e37de1ce0ecd0c7 Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Thu, 08 Jan 2026 09:49:08 +0800
Subject: [PATCH] feat:更新小程序
---
uniapps/work-wx/src/api/user/index.js | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/uniapps/work-wx/src/api/user/index.js b/uniapps/work-wx/src/api/user/index.js
index bbd5f7c..14685d4 100644
--- a/uniapps/work-wx/src/api/user/index.js
+++ b/uniapps/work-wx/src/api/user/index.js
@@ -26,7 +26,7 @@
// 用户登录接口
export const loginByUsername = (tenantId, deptId, roleId, username, password, type, key, code) => {
return request({
- url: '/blade-auth/oauth/token',
+ url: '/auth/login',
method: 'post',
header: {
'Tenant-Id': tenantId,
@@ -35,10 +35,12 @@
'Captcha-Key': key,
'Captcha-Code': code,
},
- params: {
+ data: {
tenantId,
username,
password,
+ checkCode:'',
+ mobile: false,
grant_type: 'password',
scope: 'all',
type,
--
Gitblit v1.9.3