fix(electron): update electron login page

This commit is contained in:
qier222 2020-12-09 18:27:19 +08:00
parent f68ae5c078
commit 95aa6e176c
4 changed files with 20 additions and 5 deletions

View file

@ -79,7 +79,10 @@
$t("login.loginWithPhone")
}}</a>
</div>
<div class="notice" v-html="$t('login.notice')"></div>
<div
class="notice"
v-html="isElectron ? $t('login.noticeElectron') : $t('login.notice')"
></div>
</div>
</template>
@ -104,6 +107,11 @@ export default {
inputFocus: "",
};
},
computed: {
isElectron() {
return process.env.IS_ELECTRON;
},
},
created() {
if (this.$route.query.mode === "phone") {
this.mode = "phone";
@ -197,6 +205,7 @@ export default {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: calc(100vh - 192px);
}