Commit 3f5049c7 authored by ibuler's avatar ibuler

[Update] 修改nav

parent 0b142705
......@@ -48,7 +48,7 @@ export class ElementNavComponent implements OnInit {
break;
}
case 'ConnectSFTP': {
window.open('/luna/sftp/');
window.open('/coco/elfinder/sftp/');
break;
}
case 'HideLeft': {
......
......@@ -13,6 +13,9 @@ export class SftpComponent implements OnInit {
@ViewChild('sftp') el: ElementRef;
constructor(private sanitizer: DomSanitizer) {
if (!this.host) {
DataStore.NavShow = false;
}
}
ngOnInit() {
......@@ -20,11 +23,8 @@ export class SftpComponent implements OnInit {
if (this.host) {
// _target += 'f5857eee-c114-4564-af8f-96329c400a8a' + '/';
_target += this.host.id + '/';
} else {
DataStore.NavShow = false;
}
this.trust(_target);
console.log(this.host.id);
}
trust(url) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment