diff --git a/.reasonix/desktop-topic-auto-title-meta.json b/.reasonix/desktop-topic-auto-title-meta.json deleted file mode 100644 index 8144bab..0000000 --- a/.reasonix/desktop-topic-auto-title-meta.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "topic_20260807-122045_ad70a5c6e85a19b4": { - "stage": 3, - "userTurns": 3, - "basisHash": "67a0aadd52e2dfe4", - "updatedAt": 1786107445489 - } -} \ No newline at end of file diff --git a/.reasonix/desktop-topic-created-at.json b/.reasonix/desktop-topic-created-at.json deleted file mode 100644 index c8b366f..0000000 --- a/.reasonix/desktop-topic-created-at.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "topic_20260807-122045_ad70a5c6e85a19b4": 1786105245321 -} \ No newline at end of file diff --git a/.reasonix/desktop-topic-title-sources.json b/.reasonix/desktop-topic-title-sources.json deleted file mode 100644 index f1df253..0000000 --- a/.reasonix/desktop-topic-title-sources.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "topic_20260807-122045_ad70a5c6e85a19b4": "auto" -} \ No newline at end of file diff --git a/.reasonix/desktop-topic-titles.json b/.reasonix/desktop-topic-titles.json deleted file mode 100644 index be8780c..0000000 --- a/.reasonix/desktop-topic-titles.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "topic_20260807-122045_ad70a5c6e85a19b4": "我想建立一个无人机资产管ç�†åº“,采用B…" -} \ No newline at end of file diff --git a/cmd_out.txt b/cmd_out.txt deleted file mode 100644 index 3b7f66f..0000000 --- a/cmd_out.txt +++ /dev/null @@ -1,18 +0,0 @@ -============================================ - ÎÞÈË»ú×ʲú¹ÜÀíϵͳ - Ò»¼üÆô¶¯ -============================================ - -[1/2] ¼ì²éÒÀÀµ ... -[2/2] Æô¶¯·þÎñ£º http://127.0.0.1:8000 -´íÎó: ²»Ö§³ÖÊäÈëÖØÐ¶¨Ïò£¬Á¢¼´Í˳ö´Ë½ø³Ì¡£ - -·þÎñÒÑÆô¶¯£¬ä¯ÀÀÆ÷½«×Ô¶¯´ò¿ªÒ³Ãæ¡£ -¾ÖÓòÍøÄÚÆäËûµçÄÔ¿É·ÃÎÊ£º http://±¾»úIP:8000 -¹Ø±Õ±¾´°¿Ú¼´Í£Ö¹·þÎñ¡£ - -INFO: Started server process [26368] -INFO: Waiting for application startup. -INFO: Application startup complete. -ERROR: [Errno 10048] error while attempting to bind on address ('0.0.0.0', 8000): ͨ³£Ã¿¸öÌ×½Ó×ÖµØÖ·(ЭÒé/ÍøÂçµØÖ·/¶Ë¿Ú)Ö»ÔÊÐíʹÓÃÒ»´Î¡£ -INFO: Waiting for application shutdown. -INFO: Application shutdown complete. diff --git a/main.py b/main.py index a706104..38b8b92 100644 --- a/main.py +++ b/main.py @@ -1141,4 +1141,13 @@ def export_excel_api( # ---------------------------------------------------------------- é�™æ€�页é�¢ -app.mount("/", StaticFiles(directory=STATIC_DIR, html=True), name="static") +class NoCacheStaticFiles(StaticFiles): + """é�™æ€�文件ç¦�用缓存:æ¯�次请求都让æµ�览器é‡�新校验(é�¿å…�改版å�Žçœ‹ä¸�到更新)。""" + + def file_response(self, *args, **kwargs): + resp = super().file_response(*args, **kwargs) + resp.headers["Cache-Control"] = "no-cache" + return resp + + +app.mount("/", NoCacheStaticFiles(directory=STATIC_DIR, html=True), name="static") diff --git a/static/app.js b/static/app.js index e74882f..08777bf 100644 --- a/static/app.js +++ b/static/app.js @@ -158,9 +158,8 @@ function renderDrones() { table.innerHTML = ` - 机型编å�·é“¾è·¯ID飞控ID - 飞控版本导航版本 - 当å‰�状æ€�备注æ“�作 + 机型编å�·å½“å‰�状æ€�æ“�作 + 飞控ID链路ID飞控版本导航版本备注 `; const tbodyEl = table.querySelector("tbody"); for (const d of dronesCache) { @@ -171,19 +170,19 @@ function renderDrones() { ${esc(d.model)} ${esc(d.serial_no)} - ${esc(d.link_id)} - ${esc(d.fc_id)} - ${esc(d.fc_version)} - ${esc(d.nav_version)} ${badge(st)}${lastRemark ? `
${esc(lastRemark)}
` : ""} - ${esc(d.remark)}
-
`; + + ${esc(d.fc_id)} + ${esc(d.link_id)} + ${esc(d.fc_version)} + ${esc(d.nav_version)} + ${esc(d.remark)}`; tbodyEl.appendChild(tr); } wrap.innerHTML = ""; diff --git a/uav.db b/uav.db deleted file mode 100644 index 921dfed..0000000 Binary files a/uav.db and /dev/null differ diff --git a/无人机�账.xlsx b/无人机�账.xlsx deleted file mode 100644 index 6899c66..0000000 Binary files a/无人机�账.xlsx and /dev/null differ