diff --git a/projects/WebSPA/wwwroot/pages/login.html b/projects/WebSPA/wwwroot/pages/login.html index e7e74514..93d73d77 100644 --- a/projects/WebSPA/wwwroot/pages/login.html +++ b/projects/WebSPA/wwwroot/pages/login.html @@ -1,8 +1,13 @@ 
+
+ +

+
+
-

+

diff --git a/projects/WebSPA/wwwroot/pages/login.js b/projects/WebSPA/wwwroot/pages/login.js index 0a63f9bf..625c7601 100644 --- a/projects/WebSPA/wwwroot/pages/login.js +++ b/projects/WebSPA/wwwroot/pages/login.js @@ -78,6 +78,16 @@ enterKeyup() { document.addEventListener("keyup", this.enterKey); }, + closeWindow(){ + if(window.api){ + window.api.execScript( + { + name: window.api.winName, + script: "api.closeWin()" + } + ) + } + }, } }) });