fix(web): reveal NFC peripherals after detection

This commit is contained in:
Miayui
2026-09-21 11:04:18 +08:00
parent 448c8b31a0
commit b3bd90f748
9 changed files with 75 additions and 14 deletions
+2 -2
View File
@@ -1024,7 +1024,7 @@ operations:
) as response:
speech_worklet = response.read().decode("utf-8")
with self.opener.open(
f"{self.base_url}/self-extension.js?v=nfc-persistent-57", timeout=3
f"{self.base_url}/self-extension.js?v=nfc-session-58", timeout=3
) as response:
extension_script = response.read().decode("utf-8")
with self.opener.open(
@@ -1105,7 +1105,7 @@ operations:
self.assertIn('id="v2BootScreen"', template)
self.assertIn('正在加载车机控制与实时状态', template)
self.assertIn(
f'src="{runtime_url("self-extension.js", "/self-extension.js?v=nfc-persistent-57")}"',
f'src="{runtime_url("self-extension.js", "/self-extension.js?v=nfc-session-58")}"',
html,
)
self.assertIn('import "../self-extension.css";', vite_entry)