修复了控制台多余的选项

This commit is contained in:
Xiaoyu 2025-02-05 22:14:35 +08:00
parent 89b121c08c
commit 1e2e7c9567
3 changed files with 169 additions and 207 deletions

180
package-lock.json generated
View File

@ -868,9 +868,9 @@
} }
}, },
"node_modules/@rollup/rollup-android-arm-eabi": { "node_modules/@rollup/rollup-android-arm-eabi": {
"version": "4.34.1", "version": "4.34.3",
"resolved": "https://registry.npmmirror.com/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.34.1.tgz", "resolved": "https://registry.npmmirror.com/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.34.3.tgz",
"integrity": "sha512-kwctwVlswSEsr4ljpmxKrRKp1eG1v2NAhlzFzDf1x1OdYaMjBYjDCbHkzWm57ZXzTwqn8stMXgROrnMw8dJK3w==", "integrity": "sha512-8kq/NjMKkMTGKMPldWihncOl62kgnLYk7cW+/4NCUWfS70/wz4+gQ7rMxMMpZ3dIOP/xw7wKNzIuUnN/H2GfUg==",
"cpu": [ "cpu": [
"arm" "arm"
], ],
@ -882,9 +882,9 @@
] ]
}, },
"node_modules/@rollup/rollup-android-arm64": { "node_modules/@rollup/rollup-android-arm64": {
"version": "4.34.1", "version": "4.34.3",
"resolved": "https://registry.npmmirror.com/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.34.1.tgz", "resolved": "https://registry.npmmirror.com/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.34.3.tgz",
"integrity": "sha512-4H5ZtZitBPlbPsTv6HBB8zh1g5d0T8TzCmpndQdqq20Ugle/nroOyDMf9p7f88Gsu8vBLU78/cuh8FYHZqdXxw==", "integrity": "sha512-1PqMHiuRochQ6++SDI7SaRDWJKr/NgAlezBi5nOne6Da6IWJo3hK0TdECBDwd92IUDPG4j/bZmWuwOnomNT8wA==",
"cpu": [ "cpu": [
"arm64" "arm64"
], ],
@ -896,9 +896,9 @@
] ]
}, },
"node_modules/@rollup/rollup-darwin-arm64": { "node_modules/@rollup/rollup-darwin-arm64": {
"version": "4.34.1", "version": "4.34.3",
"resolved": "https://registry.npmmirror.com/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.34.1.tgz", "resolved": "https://registry.npmmirror.com/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.34.3.tgz",
"integrity": "sha512-f2AJ7Qwx9z25hikXvg+asco8Sfuc5NCLg8rmqQBIOUoWys5sb/ZX9RkMZDPdnnDevXAMJA5AWLnRBmgdXGEUiA==", "integrity": "sha512-fqbrykX4mGV3DlCDXhF4OaMGcchd2tmLYxVt3On5oOZWVDFfdEoYAV2alzNChl8OzNaeMAGqm1f7gk7eIw/uDg==",
"cpu": [ "cpu": [
"arm64" "arm64"
], ],
@ -910,9 +910,9 @@
] ]
}, },
"node_modules/@rollup/rollup-darwin-x64": { "node_modules/@rollup/rollup-darwin-x64": {
"version": "4.34.1", "version": "4.34.3",
"resolved": "https://registry.npmmirror.com/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.34.1.tgz", "resolved": "https://registry.npmmirror.com/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.34.3.tgz",
"integrity": "sha512-+/2JBrRfISCsWE4aEFXxd+7k9nWGXA8+wh7ZUHn/u8UDXOU9LN+QYKKhd57sIn6WRcorOnlqPMYFIwie/OHXWw==", "integrity": "sha512-8Wxrx/KRvMsTyLTbdrMXcVKfpW51cCNW8x7iQD72xSEbjvhCY3b+w83Bea3nQfysTMR7K28esc+ZFITThXm+1w==",
"cpu": [ "cpu": [
"x64" "x64"
], ],
@ -924,9 +924,9 @@
] ]
}, },
"node_modules/@rollup/rollup-freebsd-arm64": { "node_modules/@rollup/rollup-freebsd-arm64": {
"version": "4.34.1", "version": "4.34.3",
"resolved": "https://registry.npmmirror.com/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.34.1.tgz", "resolved": "https://registry.npmmirror.com/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.34.3.tgz",
"integrity": "sha512-SUeB0pYjIXwT2vfAMQ7E4ERPq9VGRrPR7Z+S4AMssah5EHIilYqjWQoTn5dkDtuIJUSTs8H+C9dwoEcg3b0sCA==", "integrity": "sha512-lpBmV2qSiELh+ATQPTjQczt5hvbTLsE0c43Rx4bGxN2VpnAZWy77we7OO62LyOSZNY7CzjMoceRPc+Lt4e9J6A==",
"cpu": [ "cpu": [
"arm64" "arm64"
], ],
@ -938,9 +938,9 @@
] ]
}, },
"node_modules/@rollup/rollup-freebsd-x64": { "node_modules/@rollup/rollup-freebsd-x64": {
"version": "4.34.1", "version": "4.34.3",
"resolved": "https://registry.npmmirror.com/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.34.1.tgz", "resolved": "https://registry.npmmirror.com/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.34.3.tgz",
"integrity": "sha512-L3T66wAZiB/ooiPbxz0s6JEX6Sr2+HfgPSK+LMuZkaGZFAFCQAHiP3dbyqovYdNaiUXcl9TlgnIbcsIicAnOZg==", "integrity": "sha512-sNPvBIXpgaYcI6mAeH13GZMXFrrw5mdZVI1M9YQPRG2LpjwL8DSxSIflZoh/B5NEuOi53kxsR/S2GKozK1vDXA==",
"cpu": [ "cpu": [
"x64" "x64"
], ],
@ -952,9 +952,9 @@
] ]
}, },
"node_modules/@rollup/rollup-linux-arm-gnueabihf": { "node_modules/@rollup/rollup-linux-arm-gnueabihf": {
"version": "4.34.1", "version": "4.34.3",
"resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.34.1.tgz", "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.34.3.tgz",
"integrity": "sha512-UBXdQ4+ATARuFgsFrQ+tAsKvBi/Hly99aSVdeCUiHV9dRTTpMU7OrM3WXGys1l40wKVNiOl0QYY6cZQJ2xhKlQ==", "integrity": "sha512-MW6N3AoC61OfE1VgnN5O1OW0gt8VTbhx9s/ZEPLBM11wEdHjeilPzOxVmmsrx5YmejpGPvez8QwGGvMU+pGxpw==",
"cpu": [ "cpu": [
"arm" "arm"
], ],
@ -966,9 +966,9 @@
] ]
}, },
"node_modules/@rollup/rollup-linux-arm-musleabihf": { "node_modules/@rollup/rollup-linux-arm-musleabihf": {
"version": "4.34.1", "version": "4.34.3",
"resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.34.1.tgz", "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.34.3.tgz",
"integrity": "sha512-m/yfZ25HGdcCSwmopEJm00GP7xAUyVcBPjttGLRAqZ60X/bB4Qn6gP7XTwCIU6bITeKmIhhwZ4AMh2XLro+4+w==", "integrity": "sha512-2SQkhr5xvatYq0/+H6qyW0zvrQz9LM4lxGkpWURLoQX5+yP8MsERh4uWmxFohOvwCP6l/+wgiHZ1qVwLDc7Qmw==",
"cpu": [ "cpu": [
"arm" "arm"
], ],
@ -980,9 +980,9 @@
] ]
}, },
"node_modules/@rollup/rollup-linux-arm64-gnu": { "node_modules/@rollup/rollup-linux-arm64-gnu": {
"version": "4.34.1", "version": "4.34.3",
"resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.34.1.tgz", "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.34.3.tgz",
"integrity": "sha512-Wy+cUmFuvziNL9qWRRzboNprqSQ/n38orbjRvd6byYWridp5TJ3CD+0+HUsbcWVSNz9bxkDUkyASGP0zS7GAvg==", "integrity": "sha512-R3JLYt8YoRwKI5shJsovLpcR6pwIMui/MGG/MmxZ1DYI3iRSKI4qcYrvYgDf4Ss2oCR3RL3F3dYK7uAGQgMIuQ==",
"cpu": [ "cpu": [
"arm64" "arm64"
], ],
@ -994,9 +994,9 @@
] ]
}, },
"node_modules/@rollup/rollup-linux-arm64-musl": { "node_modules/@rollup/rollup-linux-arm64-musl": {
"version": "4.34.1", "version": "4.34.3",
"resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.34.1.tgz", "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.34.3.tgz",
"integrity": "sha512-CQ3MAGgiFmQW5XJX5W3wnxOBxKwFlUAgSXFA2SwgVRjrIiVt5LHfcQLeNSHKq5OEZwv+VCBwlD1+YKCjDG8cpg==", "integrity": "sha512-4XQhG8v/t3S7Rxs7rmFUuM6j09hVrTArzONS3fUZ6oBRSN/ps9IPQjVhp62P0W3KhqJdQADo/MRlYRMdgxr/3w==",
"cpu": [ "cpu": [
"arm64" "arm64"
], ],
@ -1008,9 +1008,9 @@
] ]
}, },
"node_modules/@rollup/rollup-linux-loongarch64-gnu": { "node_modules/@rollup/rollup-linux-loongarch64-gnu": {
"version": "4.34.1", "version": "4.34.3",
"resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.34.1.tgz", "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.34.3.tgz",
"integrity": "sha512-rSzb1TsY4lSwH811cYC3OC2O2mzNMhM13vcnA7/0T6Mtreqr3/qs6WMDriMRs8yvHDI54qxHgOk8EV5YRAHFbw==", "integrity": "sha512-QlW1jCUZ1LHUIYCAK2FciVw1ptHsxzApYVi05q7bz2A8oNE8QxQ85NhM4arLxkAlcnS42t4avJbSfzSQwbIaKg==",
"cpu": [ "cpu": [
"loong64" "loong64"
], ],
@ -1022,9 +1022,9 @@
] ]
}, },
"node_modules/@rollup/rollup-linux-powerpc64le-gnu": { "node_modules/@rollup/rollup-linux-powerpc64le-gnu": {
"version": "4.34.1", "version": "4.34.3",
"resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.34.1.tgz", "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.34.3.tgz",
"integrity": "sha512-fwr0n6NS0pG3QxxlqVYpfiY64Fd1Dqd8Cecje4ILAV01ROMp4aEdCj5ssHjRY3UwU7RJmeWd5fi89DBqMaTawg==", "integrity": "sha512-kMbLToizVeCcN69+nnm20Dh0hrRIAjgaaL+Wh0gWZcNt8e542d2FUGtsyuNsHVNNF3gqTJrpzUGIdwMGLEUM7g==",
"cpu": [ "cpu": [
"ppc64" "ppc64"
], ],
@ -1036,9 +1036,9 @@
] ]
}, },
"node_modules/@rollup/rollup-linux-riscv64-gnu": { "node_modules/@rollup/rollup-linux-riscv64-gnu": {
"version": "4.34.1", "version": "4.34.3",
"resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.34.1.tgz", "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.34.3.tgz",
"integrity": "sha512-4uJb9qz7+Z/yUp5RPxDGGGUcoh0PnKF33QyWgEZ3X/GocpWb6Mb+skDh59FEt5d8+Skxqs9mng6Swa6B2AmQZg==", "integrity": "sha512-YgD0DnZ3CHtvXRH8rzjVSxwI0kMTr0RQt3o1N92RwxGdx7YejzbBO0ELlSU48DP96u1gYYVWfUhDRyaGNqJqJg==",
"cpu": [ "cpu": [
"riscv64" "riscv64"
], ],
@ -1050,9 +1050,9 @@
] ]
}, },
"node_modules/@rollup/rollup-linux-s390x-gnu": { "node_modules/@rollup/rollup-linux-s390x-gnu": {
"version": "4.34.1", "version": "4.34.3",
"resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.34.1.tgz", "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.34.3.tgz",
"integrity": "sha512-QlIo8ndocWBEnfmkYqj8vVtIUpIqJjfqKggjy7IdUncnt8BGixte1wDON7NJEvLg3Kzvqxtbo8tk+U1acYEBlw==", "integrity": "sha512-dIOoOz8altjp6UjAi3U9EW99s8nta4gzi52FeI45GlPyrUH4QixUoBMH9VsVjt+9A2RiZBWyjYNHlJ/HmJOBCQ==",
"cpu": [ "cpu": [
"s390x" "s390x"
], ],
@ -1064,9 +1064,9 @@
] ]
}, },
"node_modules/@rollup/rollup-linux-x64-gnu": { "node_modules/@rollup/rollup-linux-x64-gnu": {
"version": "4.34.1", "version": "4.34.3",
"resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.34.1.tgz", "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.34.3.tgz",
"integrity": "sha512-hzpleiKtq14GWjz3ahWvJXgU1DQC9DteiwcsY4HgqUJUGxZThlL66MotdUEK9zEo0PK/2ADeZGM9LIondE302A==", "integrity": "sha512-lOyG3aF4FTKrhpzXfMmBXgeKUUXdAWmP2zSNf8HTAXPqZay6QYT26l64hVizBjq+hJx3pl0DTEyvPi9sTA6VGA==",
"cpu": [ "cpu": [
"x64" "x64"
], ],
@ -1078,9 +1078,9 @@
] ]
}, },
"node_modules/@rollup/rollup-linux-x64-musl": { "node_modules/@rollup/rollup-linux-x64-musl": {
"version": "4.34.1", "version": "4.34.3",
"resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.34.1.tgz", "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.34.3.tgz",
"integrity": "sha512-jqtKrO715hDlvUcEsPn55tZt2TEiBvBtCMkUuU0R6fO/WPT7lO9AONjPbd8II7/asSiNVQHCMn4OLGigSuxVQA==", "integrity": "sha512-usztyYLu2i+mYzzOjqHZTaRXbUOqw3P6laNUh1zcqxbPH1P2Tz/QdJJCQSnGxCtsRQeuU2bCyraGMtMumC46rw==",
"cpu": [ "cpu": [
"x64" "x64"
], ],
@ -1092,9 +1092,9 @@
] ]
}, },
"node_modules/@rollup/rollup-win32-arm64-msvc": { "node_modules/@rollup/rollup-win32-arm64-msvc": {
"version": "4.34.1", "version": "4.34.3",
"resolved": "https://registry.npmmirror.com/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.34.1.tgz", "resolved": "https://registry.npmmirror.com/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.34.3.tgz",
"integrity": "sha512-RnHy7yFf2Wz8Jj1+h8klB93N0NHNHXFhNwAmiy9zJdpY7DE01VbEVtPdrK1kkILeIbHGRJjvfBDBhnxBr8kD4g==", "integrity": "sha512-ojFOKaz/ZyalIrizdBq2vyc2f0kFbJahEznfZlxdB6pF9Do6++i1zS5Gy6QLf8D7/S57MHrmBLur6AeRYeQXSA==",
"cpu": [ "cpu": [
"arm64" "arm64"
], ],
@ -1106,9 +1106,9 @@
] ]
}, },
"node_modules/@rollup/rollup-win32-ia32-msvc": { "node_modules/@rollup/rollup-win32-ia32-msvc": {
"version": "4.34.1", "version": "4.34.3",
"resolved": "https://registry.npmmirror.com/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.34.1.tgz", "resolved": "https://registry.npmmirror.com/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.34.3.tgz",
"integrity": "sha512-i7aT5HdiZIcd7quhzvwQ2oAuX7zPYrYfkrd1QFfs28Po/i0q6kas/oRrzGlDhAEyug+1UfUtkWdmoVlLJj5x9Q==", "integrity": "sha512-K/V97GMbNa+Da9mGcZqmSl+DlJmWfHXTuI9V8oB2evGsQUtszCl67+OxWjBKpeOnYwox9Jpmt/J6VhpeRCYqow==",
"cpu": [ "cpu": [
"ia32" "ia32"
], ],
@ -1120,9 +1120,9 @@
] ]
}, },
"node_modules/@rollup/rollup-win32-x64-msvc": { "node_modules/@rollup/rollup-win32-x64-msvc": {
"version": "4.34.1", "version": "4.34.3",
"resolved": "https://registry.npmmirror.com/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.34.1.tgz", "resolved": "https://registry.npmmirror.com/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.34.3.tgz",
"integrity": "sha512-k3MVFD9Oq+laHkw2N2v7ILgoa9017ZMF/inTtHzyTVZjYs9cSH18sdyAf6spBAJIGwJ5UaC7et2ZH1WCdlhkMw==", "integrity": "sha512-CUypcYP31Q8O04myV6NKGzk9GVXslO5EJNfmARNSzLF2A+5rmZUlDJ4et6eoJaZgBT9wrC2p4JZH04Vkic8HdQ==",
"cpu": [ "cpu": [
"x64" "x64"
], ],
@ -1156,9 +1156,9 @@
} }
}, },
"node_modules/@types/node": { "node_modules/@types/node": {
"version": "22.13.0", "version": "22.13.1",
"resolved": "https://registry.npmmirror.com/@types/node/-/node-22.13.0.tgz", "resolved": "https://registry.npmmirror.com/@types/node/-/node-22.13.1.tgz",
"integrity": "sha512-ClIbNe36lawluuvq3+YYhnIN2CELi+6q8NpnM7PYp4hBn/TatfboPgVSm2rwKRfnV2M+Ty9GWDFI64KEe+kysA==", "integrity": "sha512-jK8uzQlrvXqEU91UxiK5J7pKHyzgnI1Qnl0QDHIgVGuolJhRb9EEl28Cj9b3rGR8B2lhFCtvIm5os8lFnO/1Ew==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
@ -1986,9 +1986,9 @@
} }
}, },
"node_modules/rollup": { "node_modules/rollup": {
"version": "4.34.1", "version": "4.34.3",
"resolved": "https://registry.npmmirror.com/rollup/-/rollup-4.34.1.tgz", "resolved": "https://registry.npmmirror.com/rollup/-/rollup-4.34.3.tgz",
"integrity": "sha512-iYZ/+PcdLYSGfH3S+dGahlW/RWmsqDhLgj1BT9DH/xXJ0ggZN7xkdP9wipPNjjNLczI+fmMLmTB9pye+d2r4GQ==", "integrity": "sha512-ORCtU0UBJyiAIn9m0llUXJXAswG/68pZptCrqxHG7//Z2DDzAUeyyY5hqf4XrsGlUxscMr9GkQ2QI7KTLqeyPw==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
@ -2002,25 +2002,25 @@
"npm": ">=8.0.0" "npm": ">=8.0.0"
}, },
"optionalDependencies": { "optionalDependencies": {
"@rollup/rollup-android-arm-eabi": "4.34.1", "@rollup/rollup-android-arm-eabi": "4.34.3",
"@rollup/rollup-android-arm64": "4.34.1", "@rollup/rollup-android-arm64": "4.34.3",
"@rollup/rollup-darwin-arm64": "4.34.1", "@rollup/rollup-darwin-arm64": "4.34.3",
"@rollup/rollup-darwin-x64": "4.34.1", "@rollup/rollup-darwin-x64": "4.34.3",
"@rollup/rollup-freebsd-arm64": "4.34.1", "@rollup/rollup-freebsd-arm64": "4.34.3",
"@rollup/rollup-freebsd-x64": "4.34.1", "@rollup/rollup-freebsd-x64": "4.34.3",
"@rollup/rollup-linux-arm-gnueabihf": "4.34.1", "@rollup/rollup-linux-arm-gnueabihf": "4.34.3",
"@rollup/rollup-linux-arm-musleabihf": "4.34.1", "@rollup/rollup-linux-arm-musleabihf": "4.34.3",
"@rollup/rollup-linux-arm64-gnu": "4.34.1", "@rollup/rollup-linux-arm64-gnu": "4.34.3",
"@rollup/rollup-linux-arm64-musl": "4.34.1", "@rollup/rollup-linux-arm64-musl": "4.34.3",
"@rollup/rollup-linux-loongarch64-gnu": "4.34.1", "@rollup/rollup-linux-loongarch64-gnu": "4.34.3",
"@rollup/rollup-linux-powerpc64le-gnu": "4.34.1", "@rollup/rollup-linux-powerpc64le-gnu": "4.34.3",
"@rollup/rollup-linux-riscv64-gnu": "4.34.1", "@rollup/rollup-linux-riscv64-gnu": "4.34.3",
"@rollup/rollup-linux-s390x-gnu": "4.34.1", "@rollup/rollup-linux-s390x-gnu": "4.34.3",
"@rollup/rollup-linux-x64-gnu": "4.34.1", "@rollup/rollup-linux-x64-gnu": "4.34.3",
"@rollup/rollup-linux-x64-musl": "4.34.1", "@rollup/rollup-linux-x64-musl": "4.34.3",
"@rollup/rollup-win32-arm64-msvc": "4.34.1", "@rollup/rollup-win32-arm64-msvc": "4.34.3",
"@rollup/rollup-win32-ia32-msvc": "4.34.1", "@rollup/rollup-win32-ia32-msvc": "4.34.3",
"@rollup/rollup-win32-x64-msvc": "4.34.1", "@rollup/rollup-win32-x64-msvc": "4.34.3",
"fsevents": "~2.3.2" "fsevents": "~2.3.2"
} }
}, },
@ -2096,15 +2096,15 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/vite": { "node_modules/vite": {
"version": "6.0.11", "version": "6.1.0",
"resolved": "https://registry.npmmirror.com/vite/-/vite-6.0.11.tgz", "resolved": "https://registry.npmmirror.com/vite/-/vite-6.1.0.tgz",
"integrity": "sha512-4VL9mQPKoHy4+FE0NnRE/kbY51TOfaknxAjt3fJbGJxhIpBZiqVzlZDEesWWsuREXHwNdAoOFZ9MkPEVXczHwg==", "integrity": "sha512-RjjMipCKVoR4hVfPY6GQTgveinjNuyLw+qruksLDvA5ktI1150VmcMBKmQaEWJhg/j6Uaf6dNCNA0AfdzUb/hQ==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"esbuild": "^0.24.2", "esbuild": "^0.24.2",
"postcss": "^8.4.49", "postcss": "^8.5.1",
"rollup": "^4.23.0" "rollup": "^4.30.1"
}, },
"bin": { "bin": {
"vite": "bin/vite.js" "vite": "bin/vite.js"
@ -2168,9 +2168,9 @@
} }
}, },
"node_modules/vscode-uri": { "node_modules/vscode-uri": {
"version": "3.0.8", "version": "3.1.0",
"resolved": "https://registry.npmmirror.com/vscode-uri/-/vscode-uri-3.0.8.tgz", "resolved": "https://registry.npmmirror.com/vscode-uri/-/vscode-uri-3.1.0.tgz",
"integrity": "sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw==", "integrity": "sha512-/BpdSx+yCQGnCvecbyXdxHDkuk55/G3xwnC0GqY4gmQ3j+A+g8kzzgB4Nk/SINjqn6+waqw3EgbVF2QKExkRxQ==",
"dev": true, "dev": true,
"license": "MIT" "license": "MIT"
}, },

View File

@ -1,9 +1,6 @@
<script setup lang="ts"> <script setup lang="ts">
import { ref, onMounted } from "vue"; import { ref, onMounted } from "vue";
import * as echarts from "echarts"; import * as echarts from "echarts";
import { useRouter } from 'vue-router';
const router = useRouter();
const welcomeText = ref("欢迎使用智慧湿地管理平台"); const welcomeText = ref("欢迎使用智慧湿地管理平台");
@ -158,20 +155,6 @@ const activities = ref([
}, },
]); ]);
//
const handleCardClick = (path: string) => {
router.push(path);
//
const menuEl = document.querySelector(`.el-menu-item[index="${path}"]`) as HTMLElement;
if (menuEl) {
menuEl.click();
}
};
const handleOpenScreen = () => {
window.open('/screen', '_blank', 'width=1920,height=1080,menubar=no,toolbar=no,location=no,status=no');
};
onMounted(() => { onMounted(() => {
initTrendChart(); initTrendChart();
initDistributionChart(); initDistributionChart();
@ -180,17 +163,9 @@ onMounted(() => {
<template> <template>
<div class="dashboard-container"> <div class="dashboard-container">
<!-- 欢迎信息 --> <div class="welcome-section">
<el-row :gutter="20"> <h2>{{ welcomeText }}</h2>
<el-col :span="24"> </div>
<div class="welcome-card">
<h2>{{ welcomeText }}</h2>
<p class="welcome-subtitle">
今天是 {{ new Date().toLocaleDateString() }}祝您工作愉快
</p>
</div>
</el-col>
</el-row>
<!-- 统计卡片 --> <!-- 统计卡片 -->
<el-row :gutter="20" class="mt-20"> <el-row :gutter="20" class="mt-20">
@ -302,21 +277,6 @@ onMounted(() => {
</el-card> </el-card>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20">
<el-col :span="24">
<el-card>
<template #header>
<div class="card-header">
<span>数据大屏</span>
<el-button type="primary" @click="handleOpenScreen">
打开大屏
</el-button>
</div>
</template>
</el-card>
</el-col>
</el-row>
</div> </div>
</template> </template>

View File

@ -1,7 +1,7 @@
<script setup lang="ts"> <script setup lang="ts">
import { ref, onMounted, onUnmounted } from "vue"; import { ref, onMounted, onUnmounted } from "vue";
import { useRouter } from "vue-router"; import { useRouter } from "vue-router";
import * as echarts from 'echarts'; import * as echarts from "echarts";
const router = useRouter(); const router = useRouter();
const isFullscreen = ref(false); const isFullscreen = ref(false);
@ -21,7 +21,7 @@ const handleClose = () => {
if (isPopupWindow.value) { if (isPopupWindow.value) {
window.close(); window.close();
} else { } else {
router.push('/dashboard'); router.push("/dashboard");
} }
}; };
@ -32,124 +32,126 @@ const handleFullscreenChange = () => {
// //
const initCarbonChart = () => { const initCarbonChart = () => {
const chartDom = document.getElementById('carbonChart'); const chartDom = document.getElementById("carbonChart");
if (!chartDom) return; if (!chartDom) return;
const chart = echarts.init(chartDom); const chart = echarts.init(chartDom);
const option = { const option = {
title: { title: {
text: '湿地碳汇趋势', text: "湿地碳汇趋势",
textStyle: { textStyle: {
color: '#fff' color: "#fff",
} },
}, },
tooltip: { tooltip: {
trigger: 'axis' trigger: "axis",
}, },
legend: { legend: {
data: ['碳储量', '碳吸收量'], data: ["碳储量", "碳吸收量"],
textStyle: { textStyle: {
color: '#fff' color: "#fff",
} },
}, },
grid: { grid: {
left: '3%', left: "3%",
right: '4%', right: "4%",
bottom: '3%', bottom: "3%",
containLabel: true containLabel: true,
}, },
xAxis: { xAxis: {
type: 'category', type: "category",
boundaryGap: false, boundaryGap: false,
data: ['1月', '2月', '3月', '4月', '5月', '6月'], data: ["1月", "2月", "3月", "4月", "5月", "6月"],
axisLabel: { axisLabel: {
color: '#fff' color: "#fff",
} },
}, },
yAxis: { yAxis: {
type: 'value', type: "value",
name: '单位: 吨', name: "单位: 吨",
axisLabel: { axisLabel: {
color: '#fff' color: "#fff",
} },
}, },
series: [ series: [
{ {
name: '碳储量', name: "碳储量",
type: 'line', type: "line",
data: [320, 332, 341, 354, 360, 368], data: [320, 332, 341, 354, 360, 368],
smooth: true, smooth: true,
lineStyle: { lineStyle: {
width: 3 width: 3,
} },
}, },
{ {
name: '碳吸收量', name: "碳吸收量",
type: 'line', type: "line",
data: [12, 13, 11, 14, 9, 13], data: [12, 13, 11, 14, 9, 13],
smooth: true, smooth: true,
lineStyle: { lineStyle: {
width: 3 width: 3,
} },
} },
] ],
}; };
chart.setOption(option); chart.setOption(option);
}; };
// //
const initEcoChart = () => { const initEcoChart = () => {
const chartDom = document.getElementById('ecoChart'); const chartDom = document.getElementById("ecoChart");
if (!chartDom) return; if (!chartDom) return;
const chart = echarts.init(chartDom); const chart = echarts.init(chartDom);
const option = { const option = {
title: { title: {
text: '生态系统健康指标', text: "生态系统健康指标",
textStyle: { textStyle: {
color: '#fff' color: "#fff",
} },
}, },
radar: { radar: {
indicator: [ indicator: [
{ name: '物种多样性', max: 100 }, { name: "物种多样性", max: 100 },
{ name: '水质', max: 100 }, { name: "水质", max: 100 },
{ name: '土壤质量', max: 100 }, { name: "土壤质量", max: 100 },
{ name: '植被覆盖', max: 100 }, { name: "植被覆盖", max: 100 },
{ name: '空气质量', max: 100 } { name: "空气质量", max: 100 },
], ],
splitArea: { splitArea: {
show: true, show: true,
areaStyle: { areaStyle: {
color: ['rgba(255,255,255,0.1)'] color: ["rgba(255,255,255,0.1)"],
} },
}, },
axisLine: { axisLine: {
lineStyle: { lineStyle: {
color: 'rgba(255,255,255,0.2)' color: "rgba(255,255,255,0.2)",
} },
}, },
name: { name: {
textStyle: { textStyle: {
color: '#fff' color: "#fff",
} },
} },
}, },
series: [{ series: [
type: 'radar', {
data: [ type: "radar",
{ data: [
value: [85, 90, 88, 95, 89], {
name: '当前状态', value: [85, 90, 88, 95, 89],
areaStyle: { name: "当前状态",
opacity: 0.3 areaStyle: {
} opacity: 0.3,
} },
] },
}] ],
},
],
}; };
chart.setOption(option); chart.setOption(option);
}; };
@ -173,7 +175,7 @@ onUnmounted(() => {
<div class="header-title">智慧湿地生态监测大屏</div> <div class="header-title">智慧湿地生态监测大屏</div>
<div class="header-right"> <div class="header-right">
<el-button type="default" @click="handleClose" class="mr-10"> <el-button type="default" @click="handleClose" class="mr-10">
{{ isPopupWindow ? '关闭窗口' : '返回' }} {{ isPopupWindow ? "关闭窗口" : "返回" }}
</el-button> </el-button>
<el-button type="primary" @click="handleFullScreen"> <el-button type="primary" @click="handleFullScreen">
{{ isFullscreen ? "退出全屏" : "全屏显示" }} {{ isFullscreen ? "退出全屏" : "全屏显示" }}
@ -285,14 +287,14 @@ onUnmounted(() => {
overflow: hidden; overflow: hidden;
.data-card { .data-card {
background: rgba(255,255,255,0.05); background: rgba(255, 255, 255, 0.05);
border-radius: 8px; border-radius: 8px;
padding: 20px; padding: 20px;
margin-bottom: 20px; margin-bottom: 20px;
.card-title { .card-title {
font-size: 16px; font-size: 16px;
color: rgba(255,255,255,0.7); color: rgba(255, 255, 255, 0.7);
margin-bottom: 10px; margin-bottom: 10px;
} }
@ -311,33 +313,33 @@ onUnmounted(() => {
.card-compare { .card-compare {
font-size: 14px; font-size: 14px;
color: rgba(255,255,255,0.7); color: rgba(255, 255, 255, 0.7);
.up { .up {
color: #67C23A; color: #67c23a;
} }
.normal { .normal {
color: #409EFF; color: #409eff;
} }
} }
} }
.chart-card { .chart-card {
background: rgba(255,255,255,0.05); background: rgba(255, 255, 255, 0.05);
border-radius: 8px; border-radius: 8px;
padding: 20px; padding: 20px;
margin-bottom: 20px; margin-bottom: 20px;
} }
.info-card { .info-card {
background: rgba(255,255,255,0.05); background: rgba(255, 255, 255, 0.05);
border-radius: 8px; border-radius: 8px;
padding: 20px; padding: 20px;
.info-title { .info-title {
font-size: 16px; font-size: 16px;
color: rgba(255,255,255,0.7); color: rgba(255, 255, 255, 0.7);
margin-bottom: 10px; margin-bottom: 10px;
} }
@ -356,7 +358,7 @@ onUnmounted(() => {
.time { .time {
font-size: 12px; font-size: 12px;
color: rgba(255,255,255,0.5); color: rgba(255, 255, 255, 0.5);
} }
} }
} }