@wendongfly/myhi 1.0.27 → 1.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.html CHANGED
@@ -517,9 +517,10 @@
517
517
  }
518
518
  if (data.dir) {
519
519
  _userDir = data.dir;
520
- // 隐藏整个工作目录选择区域(后端强制使用绑定目录)
521
- const cwdField = document.getElementById('inp-cwd').closest('.field');
522
- if (cwdField) cwdField.style.display = 'none';
520
+ // 默认填入绑定目录,隐藏最近目录和盘符栏(防止跳到其他路径)
521
+ document.getElementById('inp-cwd').value = data.dir;
522
+ document.getElementById('recent-dirs').style.display = 'none';
523
+ document.getElementById('drive-bar').style.display = 'none';
523
524
  }
524
525
  }).catch(() => {});
525
526