Ver Fonte

update exe

luke há 6 anos atrás
pai
commit
5d41586c4d
2 ficheiros alterados com 3 adições e 3 exclusões
  1. 3 0
      service_exe/src/index.ejs
  2. 0 3
      service_exe/src/renderer/pages/login.vue

+ 3 - 0
service_exe/src/index.ejs

@@ -15,6 +15,9 @@
     <!-- Set `__static` path to static files in production -->
     <% if (!process.browser) { %>
       <script>
+        localStorage.clear();
+        sessionStorage.clear();
+
         const { remote } = require('electron')
         const { Menu, MenuItem } = remote
 

+ 0 - 3
service_exe/src/renderer/pages/login.vue

@@ -168,10 +168,7 @@
 				this.showSecurityCode = false;
 				this.verifySystemId = SystemId;
 				this.verifySystem = System;
-				localStorage.clear();
-				sessionStorage.clear();
 			}
-
 			this.$http.get(this.$ports.TIME).then(res => {
 				if (res.data.code == 1) {
 					let time = res.data.data.time.split(' ');