diff --git a/web/app/files.html b/web/app/files.html
index 6c9ab002..dfb50b09 100644
--- a/web/app/files.html
+++ b/web/app/files.html
@@ -705,6 +705,15 @@
// Enter key in path input
document.getElementById('dirPath').addEventListener('keydown',e=>{if(e.key==='Enter')browseDir()});
- loadServers();
+ // Auto-select server from URL param (e.g., from servers.html "文件" button)
+ loadServers().then(()=>{
+ const urlServerId=new URLSearchParams(window.location.search).get('server_id');
+ if(urlServerId){
+ const sel=document.getElementById('serverSelect');
+ sel.value=urlServerId;
+ _currentServerId=parseInt(urlServerId);
+ browseDir('/www/wwwroot');
+ }
+ });