From fb83485ab14cdf80ce394ab3e7d38a9dd8439516 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Fri, 17 Oct 2025 15:51:44 +0800
Subject: [PATCH] Merge branch 'feature/v7.0/7.0.1' of http://139.196.74.78:10010/r/drone/drone-web-manage into feature/v7.0/7.0.1

---
 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