| | |
| | | </el-form> |
| | | </div> |
| | | <!-- <p class="gradient-text gradient-text-one">——— {{serverTitle || 'SmartAI — ReID'}} ———</p> --> |
| | | <p class="gradient-text gradient-text-one">—— <b>SmartAI</b> 人工智能操作系统 ——</p> |
| | | <p class="gradient-text gradient-text-one" style="letter-spacing: 1.8px;font-size:15px;"> V1.0.0 </p> |
| | | |
| | | <p class="gradient-text gradient-text-one"> |
| | | —— |
| | | <b>SmartAI</b> 人工智能操作系统 —— |
| | | </p> |
| | | <p |
| | | class="gradient-text gradient-text-one" |
| | | style="letter-spacing: 1.8px;font-size:15px;" |
| | | >V1.0.0</p> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | this.getScreenHeight() |
| | | }, |
| | | mounted() { |
| | | console.log(this.serverTitle) |
| | | // 自动登录接口 |
| | | this.loginRobot(); |
| | | }, |
| | | watch: {}, |
| | | beforeDestroy() { |
| | | window.onresize = null |
| | | }, |
| | | methods: { |
| | | loginRobot() { |
| | | // 解析路由参数,并缓存 |
| | | let user = this.getQueryVariable("username"); |
| | | let passwd = this.getQueryVariable("password"); |
| | | if (user.length && passwd.length) { |
| | | sessionStorage.setItem("autoLogin", JSON.stringify({ username: user, passwd: passwd })); |
| | | |
| | | this.user.loginName = user; |
| | | this.user.password = passwd; |
| | | this.systemLogin(); |
| | | return; |
| | | } |
| | | |
| | | // 登陆超时后的重新登陆 |
| | | let sessionInfo = sessionStorage.getItem('autoLogin'); |
| | | if (sessionInfo) { |
| | | let authority = JSON.parse(sessionInfo); |
| | | this.user.loginName = authority.username; |
| | | this.user.password = authority.passwd; |
| | | this.systemLogin(); |
| | | } |
| | | }, |
| | | systemLogin() { |
| | | this.nullRule = this.rules |
| | | this.$nextTick(() => { |
| | |
| | | }); |
| | | } |
| | | }, |
| | | getQueryVariable(variable) { |
| | | var query = window.location.search.substring(1); |
| | | var vars = query.split("&"); |
| | | for (var i = 0; i < vars.length; i++) { |
| | | var pair = vars[i].split("="); |
| | | if (pair[0] == variable) { return pair[1]; } |
| | | } |
| | | return (false); |
| | | } |
| | | }, |
| | | } |
| | | </script> |
| | |
| | | font-family: -webkit-pictograph; |
| | | font-weight: bolder; |
| | | position: relative; |
| | | b{ |
| | | b { |
| | | font-size: 20px; |
| | | } |
| | | } |