@wendongfly/myhi 1.0.26 → 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,13 +517,10 @@
517
517
  }
518
518
  if (data.dir) {
519
519
  _userDir = data.dir;
520
- const cwdInput = document.getElementById('inp-cwd');
521
- cwdInput.value = data.dir;
522
- cwdInput.readOnly = true;
523
- cwdInput.style.opacity = '0.6';
524
- // 隐藏目录选择按钮和最近目录
525
- cwdInput.parentElement.querySelector('button').style.display = 'none';
520
+ // 默认填入绑定目录,隐藏最近目录和盘符栏(防止跳到其他路径)
521
+ document.getElementById('inp-cwd').value = data.dir;
526
522
  document.getElementById('recent-dirs').style.display = 'none';
523
+ document.getElementById('drive-bar').style.display = 'none';
527
524
  }
528
525
  }).catch(() => {});
529
526