Compare commits

...

2 Commits

Author SHA1 Message Date
75a03bb3b0 fix: 修复重定向逻辑,确保在登录成功后正确打开链接 2026-02-27 03:59:48 +08:00
93ca7ee6f9 update 2026-02-24 15:34:57 +08:00
2 changed files with 9 additions and 14 deletions

View File

@@ -1,11 +1,10 @@
{
"name": "@kevisual/kv-login",
"version": "0.1.14",
"version": "0.1.15",
"description": "",
"main": "src/main.ts",
"scripts": {
"dev": "vite",
"build": "bun bun.config.ts",
"build": "rimraf dist && bun bun.config.ts",
"postbuild": "dts -i src/main.ts -o app.d.ts",
"build:test": "vite build",
"prepub": "rm -rf ./dist && pnpm run build:test",
@@ -19,25 +18,21 @@
],
"author": "abearxiong <xiongxiao@xiongxiao.me> (https://www.xiongxiao.me)",
"license": "MIT",
"packageManager": "pnpm@10.30.1",
"publishConfig": {
"access": "public"
},
"type": "module",
"dependencies": {
"dependencies": {},
"exports": {
".": "./dist/app.js"
},
"devDependencies": {
"@kevisual/cache": "^0.0.5",
"@kevisual/context": "^0.0.8",
"@kevisual/query": "^0.0.49",
"crypto-js": "^4.2.0",
"lit-html": "^3.3.2",
"qrcode": "^1.5.4"
},
"exports": {
".": "./dist/app.js",
"./types": "./types/index.d.ts"
},
"types": "./types/index.d.ts",
"devDependencies": {
"qrcode": "^1.5.4",
"@kevisual/api": "^0.0.59",
"@types/bun": "^1.3.9",
"vite": "^7.3.1"

View File

@@ -17,7 +17,7 @@ export const redirectHome = () => {
if (redirect) {
setTimeout(() => {
const href = decodeURIComponent(redirect);
// window.open(href, '_self');
window.open(href, '_self');
console.log('重定向到:', href);
}, 2000);
return;