This is an automated email from the ASF dual-hosted git repository.

Aias00 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu-dashboard.git


The following commit(s) were added to refs/heads/master by this push:
     new 83969a57 feat: login get to post (#589)
83969a57 is described below

commit 83969a574ea35db3092c3e16901ba89a7f800a7b
Author: eye-gu <[email protected]>
AuthorDate: Sun Aug 2 20:57:57 2026 +0800

    feat: login get to post (#589)
    
    * feat: login get to post
    
    * ci: use npm ci to fix deploy workflow engine mismatch
    
    - deploy.yml: switch yarn install to npm ci (consumes committed
      package-lock.json instead of resolving latest versions, which
      pulled [email protected] requiring Node >=22.12.0 on a Node 20 CI)
    - api.js: default queryLogin param to {} to avoid runtime error
      when called without arguments
---
 .github/workflows/deploy.yml |  2 +-
 src/services/api.js          | 11 ++++++++---
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 3d23596d..8206bab8 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -23,7 +23,7 @@ jobs:
           node-version: "20"
       -
         name: Setup Dependencies
-        run: yarn install
+        run: npm ci
       -
         name: Build Site
         run: npm run build
diff --git a/src/services/api.js b/src/services/api.js
index 0af770a8..57b02cb3 100644
--- a/src/services/api.js
+++ b/src/services/api.js
@@ -546,9 +546,14 @@ export async function queryPlatform() {
 }
 
 /* login */
-export async function queryLogin(params) {
-  return request(`${baseUrl}/platform/login?${stringify(params)}`, {
-    method: `GET`,
+export async function queryLogin(params = {}) {
+  return request(`${baseUrl}/platform/login`, {
+    method: `POST`,
+    body: {
+      userName: params.userName,
+      password: params.password,
+      clientId: params.clientId,
+    },
   });
 }
 

Reply via email to