修复了控制台多余的选项

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

View File

@ -1,9 +1,6 @@
<script setup lang="ts">
import { ref, onMounted } from "vue";
import * as echarts from "echarts";
import { useRouter } from 'vue-router';
const router = useRouter();
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(() => {
initTrendChart();
initDistributionChart();
@ -180,17 +163,9 @@ onMounted(() => {
<template>
<div class="dashboard-container">
<!-- 欢迎信息 -->
<el-row :gutter="20">
<el-col :span="24">
<div class="welcome-card">
<h2>{{ welcomeText }}</h2>
<p class="welcome-subtitle">
今天是 {{ new Date().toLocaleDateString() }}祝您工作愉快
</p>
</div>
</el-col>
</el-row>
<div class="welcome-section">
<h2>{{ welcomeText }}</h2>
</div>
<!-- 统计卡片 -->
<el-row :gutter="20" class="mt-20">
@ -302,21 +277,6 @@ onMounted(() => {
</el-card>
</el-col>
</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>
</template>

View File

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