fix: 修复开发环境实时连接握手失败

- 开发代理转发线上接口时,WebSocket 握手补 changeOrigin 与 Origin 改写
- 实时连接握手连续失败两次后停止重连
- 版本号升至 4.11.1
This commit is contained in:
Ray.Hao
2026-10-30 17:39:50 +08:00
parent f443eb6bbe
commit 1383b58e80
8 changed files with 83 additions and 154 deletions

View File

@@ -1,7 +1,7 @@
{
"name": "vue3-element-admin",
"description": "Vue3 + Vite + TypeScript + Element-Plus 的后台管理模板,vue-element-admin 的 Vue3 版本",
"version": "4.11.0",
"version": "4.11.1",
"private": true,
"type": "module",
"scripts": {
@@ -14,7 +14,6 @@
"lint:eslint": "eslint --cache \"src/**/*.{vue,ts,js}\" --fix",
"lint:prettier": "prettier --write \"**/*.{js,cjs,ts,json,css,scss,vue,html}\"",
"lint:stylelint": "stylelint --cache \"**/*.{css,scss,vue}\" --fix",
"lint:lint-staged": "lint-staged",
"lint": "pnpm run lint:eslint && pnpm run lint:prettier && pnpm run lint:stylelint",
"lint:check": "eslint src mock vite.config.ts uno.config.ts eslint.config.ts",
"format:check": "prettier --check --no-error-on-unmatched-pattern \"src/**/*.{ts,vue,scss,css,json}\" \"mock/**/*.ts\" \"*.{ts,cjs,mjs,json,yaml}\" \".github/workflows/*.{yml,yaml}\"",