修复bug

This commit is contained in:
2026-02-26 08:46:33 +08:00
parent 6d7cad25ea
commit 455e4536d4
66 changed files with 376 additions and 65 deletions

20
check_one.py Normal file
View File

@@ -0,0 +1,20 @@
import sys
def check_file(file_path):
print(f"Checking {file_path}")
try:
content = open(file_path, 'r', encoding='utf-8').read()
tags = ['template', 'script', 'style', 'view', 'text', 'image', 'scroll-view', 'component', 'slot', 'input', 'textarea']
# Simple count check
for tag in tags:
o_count = content.count(f'<{tag}')
c_count = content.count(f'</{tag}>')
print(f" {tag}: open={o_count}, close={c_count}")
except Exception as e:
print(f"Error: {e}")
if __name__ == "__main__":
check_file(sys.argv[1])