|
@@ -239,9 +239,6 @@ |
|
|
getSite(this.version).then(site => { |
|
|
getSite(this.version).then(site => { |
|
|
if (site) { |
|
|
if (site) { |
|
|
this.$store.commit('UPDATE_SITE', {site}); |
|
|
this.$store.commit('UPDATE_SITE', {site}); |
|
|
this.$refs.login.focus(); |
|
|
|
|
|
}else{ |
|
|
|
|
|
this.$refs.site.focus(); |
|
|
|
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
@@ -255,6 +252,13 @@ |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
mounted(){ |
|
|
|
|
|
if (this.password.site) { |
|
|
|
|
|
this.$refs.login.focus(); |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$refs.site.focus(); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
data(){ |
|
|
data(){ |
|
|
return { |
|
|
return { |
|
|
masterPassword: '', |
|
|
masterPassword: '', |
|
|