diff --git a/dinky-admin/src/main/java/org/dinky/interceptor/TenantInterceptor.java b/dinky-admin/src/main/java/org/dinky/interceptor/TenantInterceptor.java index 330509e29f..dc68927584 100644 --- a/dinky-admin/src/main/java/org/dinky/interceptor/TenantInterceptor.java +++ b/dinky-admin/src/main/java/org/dinky/interceptor/TenantInterceptor.java @@ -59,7 +59,7 @@ public boolean preHandle(HttpServletRequest request, @NotNull HttpServletRespons if (Asserts.isNotNull(cookies)) { for (Cookie cookie : cookies) { switch (cookie.getName()) { - case "token": + case "dinky-token": token = Opt.ofBlankAble(cookie.getValue()); SaTokenDao saTokenDao = SaManager.getSaTokenDao(); String keyTokenValue = StpUtil.getStpLogic().splicingKeyTokenValue(token.get()); diff --git a/dinky-admin/src/main/resources/application.yml b/dinky-admin/src/main/resources/application.yml index a8c537a333..0855ab1b26 100644 --- a/dinky-admin/src/main/resources/application.yml +++ b/dinky-admin/src/main/resources/application.yml @@ -145,7 +145,7 @@ sa-token: is-write-header: true # is read header is-read-header: true - token-name: token + token-name: dinky-token is-read-cookie: true --- diff --git a/dinky-web/src/services/constants.tsx b/dinky-web/src/services/constants.tsx index c1dadc54e2..209361dd8d 100644 --- a/dinky-web/src/services/constants.tsx +++ b/dinky-web/src/services/constants.tsx @@ -35,7 +35,7 @@ export const LANGUAGE_EN = 'en-US'; export const SERVER_VERSION = 'dinky_server_version'; -export const TOKEN_KEY = 'token'; +export const TOKEN_KEY = 'dinky-token'; export const DATE_FORMAT = 'YYYY-MM-DD'; export const DATETIME_FORMAT = 'YYYY-MM-DD HH:mm:ss';