perf: optimize CPU and memory usage of homepage traffic chart

This commit is contained in:
wonfen
2025-03-16 14:34:29 +08:00
parent e0e1a05448
commit 16d5077f55
4 changed files with 130 additions and 67 deletions

View File

@@ -1,16 +1,16 @@
#!/bin/bash
pnpm pretty-quick --staged
#pnpm pretty-quick --staged
# 运行 clippy fmt
cargo fmt --manifest-path ./src-tauri/Cargo.toml
#cargo fmt --manifest-path ./src-tauri/Cargo.toml
if [ $? -ne 0 ]; then
echo "rustfmt failed to format the code. Please fix the issues and try again."
exit 1
fi
# if [ $? -ne 0 ]; then
# echo "rustfmt failed to format the code. Please fix the issues and try again."
# exit 1
# fi
git add .
#git add .
# 允许提交
exit 0