feat: enhance login handling and message creation

- Updated main.ts to export createMessage and queryLogin.
- Modified checkPluginLogin in login-handle.ts to return structured results.
- Refactored query.ts to adjust imports and export queryLogin.
- Cleaned up kv-login.ts by removing unused imports and improving method handling.
- Adjusted Vite configuration for deployment path changes.
- Simplified web.html by removing unnecessary import maps and scripts.
- Created web.ts to handle login success events and user redirection logic.
This commit is contained in:
2026-02-03 18:33:35 +08:00
parent 6f2be438c9
commit a7829ba5e6
10 changed files with 849 additions and 74 deletions

View File

@@ -1,8 +1,9 @@
import { defineConfig } from 'vite';
import { resolve } from 'path';
const idDev = process.env.NODE_ENV === 'development';
export default defineConfig({
base: idDev ? '/' : '/root/kv-login-test/',
base: idDev ? '/' : '/root/login/',
server: {
proxy: {
'/api': {