diff --git a/src/app/is-login.service.ts b/src/app/is-login.service.ts
index c27e403..ce47328 100644
--- a/src/app/is-login.service.ts
+++ b/src/app/is-login.service.ts
@@ -29,7 +29,8 @@ export class IsLoginService {
let link = document.createElement("a");
link.style.display = "none";
link.href = url;
- link.setAttribute("download", e.fileName);
+ let fileName = e.fileName ? e.fileName : e.objectName.split('/')[e.objectName.split('/').length-1]
+ link.setAttribute("download", fileName);
document.body.appendChild(link);
link.click();
@@ -67,9 +68,9 @@ export class IsLoginService {
let link = document.createElement("a");
link.style.display = "none";
link.href = url;
- link.setAttribute("download", e.fileName);
+ let fileName = e.fileName ? e.fileName : e.objectName.split('/')[e.objectName.split('/').length-1]
+ link.setAttribute("download", fileName);
document.body.appendChild(link);
-
link.click();
this.isDownloading = false //关闭下载进度条
this.downloadProgress = 0 //初始化进度条
diff --git a/src/app/pages/lockscreen/lockscreen.component.ts b/src/app/pages/lockscreen/lockscreen.component.ts
index 81df77c..ae05839 100644
--- a/src/app/pages/lockscreen/lockscreen.component.ts
+++ b/src/app/pages/lockscreen/lockscreen.component.ts
@@ -29,6 +29,7 @@ export class LockscreenComponent implements OnInit {
onSubmit(e){
let params = { roleType: this.roleType }
this.http.post('/api/Account/SignIn',e,{params}).subscribe((data:any)=>{
+ sessionStorage.setItem('userId',data.userId)
sessionStorage.setItem('username',e.name)
sessionStorage.setItem('expires',data.expires)
sessionStorage.setItem('realName',data.realName)
diff --git a/src/app/pages/login/login.component.ts b/src/app/pages/login/login.component.ts
index 60bb7b0..51c235d 100644
--- a/src/app/pages/login/login.component.ts
+++ b/src/app/pages/login/login.component.ts
@@ -29,6 +29,7 @@ export class LoginComponent implements OnInit {
onSubmit(e){
let params = { roleType: '0' }
this.http.post('/api/Account/SignIn',e,{params}).subscribe((data:any)=>{
+ sessionStorage.setItem('userId',data.userId)
sessionStorage.setItem('username',e.name)
sessionStorage.setItem('expires',data.expires)
sessionStorage.setItem('realName',data.realName)
diff --git a/src/app/ui/all-file/all-file.component.html b/src/app/ui/all-file/all-file.component.html
index bd31389..e6c7659 100644
--- a/src/app/ui/all-file/all-file.component.html
+++ b/src/app/ui/all-file/all-file.component.html
@@ -149,6 +149,9 @@