feat:rock增加手动刷新Token按钮
This commit is contained in:
@@ -794,6 +794,18 @@ export const rockApi = {
|
||||
request
|
||||
.post("/platform/rock/login-test", data)
|
||||
.then((r) => r.data.data as { username: string; role: string; points: number }),
|
||||
refreshRockToken: () =>
|
||||
request
|
||||
.post("/platform/rock/token/refresh")
|
||||
.then(
|
||||
(r) =>
|
||||
r.data.data as {
|
||||
username: string;
|
||||
role: string;
|
||||
points: number;
|
||||
refreshed_at: string;
|
||||
},
|
||||
),
|
||||
getStats: () =>
|
||||
request.get("/platform/rock/stats").then((r) => r.data.data as RockStats),
|
||||
refreshDashboard: () =>
|
||||
|
||||
Reference in New Issue
Block a user