From a5cef078f57b8f51bf41b1b92a6a0926d90edd42 Mon Sep 17 00:00:00 2001 From: liangxu Date: Wed, 29 Apr 2026 15:59:23 +0800 Subject: [PATCH] feat(ops-web/auth): add remember-me with session/local storage split Persistent logins land in localStorage, ephemeral ones in sessionStorage, and we recall the last username + remember preference on the login form. Also propagate the indigo brand color through the antd ConfigProvider theme token so the side nav and avatar match the redesigned login. --- apps/ops-web/src/App.vue | 11 +++- apps/ops-web/src/layouts/AppShell.vue | 8 +-- apps/ops-web/src/lib/http.ts | 2 +- apps/ops-web/src/lib/storage.ts | 94 ++++++++++++++++++++++----- apps/ops-web/src/stores/auth.ts | 43 ++++++++---- apps/ops-web/src/views/LoginView.vue | 15 ++++- 6 files changed, 133 insertions(+), 40 deletions(-) diff --git a/apps/ops-web/src/App.vue b/apps/ops-web/src/App.vue index 97bc225..f7f8d8e 100644 --- a/apps/ops-web/src/App.vue +++ b/apps/ops-web/src/App.vue @@ -1,5 +1,5 @@