From 5808f76456ca0d40de5074f132b73a5a488e3e13 Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Tue, 09 Dec 2025 09:12:03 +0800
Subject: [PATCH] Merge branch 'refs/heads/feature/v9.0/9.0.1' into test

---
 src/api/user.js |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/api/user.js b/src/api/user.js
index 83dd50f..7785c82 100644
--- a/src/api/user.js
+++ b/src/api/user.js
@@ -17,7 +17,7 @@
       tenantId,
       username,
       password,
-      grant_type: website.captchaMode ? 'captcha' : 'password',
+      grant_type: 'password',
       scope: 'all',
       type,
     },
@@ -122,10 +122,11 @@
     },
   });
 
-export const getButtons = () =>
+export const getButtons = (params) =>
   request({
     url: '/blade-system/menu/buttons',
     method: 'get',
+    params
   });
 
 export const getCaptcha = () =>
@@ -171,3 +172,10 @@
       phone,
     },
   });
+
+export const getParentDeptInfo = params =>
+  request({
+    url: '/blade-system/dept/getParentDeptInfo',
+    method: 'get',
+    params: params,
+  });

--
Gitblit v1.9.3