From: root Date: Wed, 23 Sep 2026 09:42:58 +0000 (+0800) Subject: fix: ElMessage.info 第二参数被当作 appContext 导致崩溃;移除 playwright 测试依赖 X-Git-Url: http://acesimba.cloud/gitweb/?a=commitdiff_plain;h=3d1aa105a9149b473ecaf67f8f1627cd2527d083;p=StationBuilder-vue.git fix: ElMessage.info 第二参数被当作 appContext 导致崩溃;移除 playwright 测试依赖 --- diff --git a/package-lock.json b/package-lock.json index 5668385..249a5c4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,7 +18,6 @@ "@types/node": "22.19.19", "@vitejs/plugin-vue": "^6.0.9", "less": "^4.9.1", - "playwright": "^1.48.0", "vite": "8.0.13" }, "engines": { @@ -1487,53 +1486,6 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, - "node_modules/playwright": { - "version": "1.48.0", - "resolved": "http://mirrors.tencent.com/npm/playwright/-/playwright-1.48.0.tgz", - "integrity": "sha512-qPqFaMEHuY/ug8o0uteYJSRfMGFikhUysk8ZvAtfKmUK3kc/6oNl/y3EczF8OFGYIi/Ex2HspMfzYArk6+XQSA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "playwright-core": "1.48.0" - }, - "bin": { - "playwright": "cli.js" - }, - "engines": { - "node": ">=18" - }, - "optionalDependencies": { - "fsevents": "2.3.2" - } - }, - "node_modules/playwright-core": { - "version": "1.48.0", - "resolved": "http://mirrors.tencent.com/npm/playwright-core/-/playwright-core-1.48.0.tgz", - "integrity": "sha512-RBvzjM9rdpP7UUFrQzRwR8L/xR4HyC1QXMzGYTbf1vjw25/ya9NRAVnXi/0fvFopjebvyPzsmoK58xxeEOaVvA==", - "dev": true, - "license": "Apache-2.0", - "bin": { - "playwright-core": "cli.js" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/playwright/node_modules/fsevents": { - "version": "2.3.2", - "resolved": "http://mirrors.tencent.com/npm/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, "node_modules/pngjs": { "version": "5.0.0", "resolved": "http://mirrors.tencent.com/npm/pngjs/-/pngjs-5.0.0.tgz", diff --git a/package.json b/package.json index a042d03..512dc5b 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,6 @@ "@types/node": "22.19.19", "@vitejs/plugin-vue": "^6.0.9", "less": "^4.9.1", - "playwright": "^1.48.0", "vite": "8.0.13" } } diff --git a/src-vue/Home.vue b/src-vue/Home.vue index 1e30251..77bffcb 100644 --- a/src-vue/Home.vue +++ b/src-vue/Home.vue @@ -53,7 +53,7 @@ import { meta, SITE_EDIT_STEPS, MODELS } from "./lib/meta.js"; // setup binding instead. const win = window; -const notify = (m) => { ElMessage.info(m, 2.2); }; +const notify = (m) => { try { console.log("NOTIFY_STACK " + (new Error("notify: " + m)).stack); } catch (e) {} ElMessage.info(m); }; const confirm = (msg) => Promise.resolve(window.confirm(msg)); // ---- state ----