no message

This commit is contained in:
kuaifan 2022-01-11 10:59:47 +08:00
parent e711220a66
commit 01a1e34e99
2 changed files with 17 additions and 7 deletions

View File

@ -4,7 +4,7 @@
<div class="login-body"> <div class="login-body">
<div class="login-logo"></div> <div class="login-logo"></div>
<div class="login-box"> <div class="login-box">
<div class="login-title">Welcome {{welcomeTitle}}</div> <div class="login-title">{{welcomeTitle}}</div>
<div v-if="loginType=='reg'" class="login-subtitle">{{$L('输入您的信息以创建帐户')}}</div> <div v-if="loginType=='reg'" class="login-subtitle">{{$L('输入您的信息以创建帐户')}}</div>
<div v-else class="login-subtitle">{{$L('输入您的凭证以访问您的帐户。')}}</div> <div v-else class="login-subtitle">{{$L('输入您的凭证以访问您的帐户。')}}</div>
@ -56,8 +56,6 @@ export default {
return { return {
loadIng: 0, loadIng: 0,
welcomeTitle: window.systemInfo.title || "Dootask",
codeNeed: false, codeNeed: false,
codeUrl: $A.apiUrl('users/login/codeimg'), codeUrl: $A.apiUrl('users/login/codeimg'),
@ -96,6 +94,16 @@ export default {
currentLanguage() { currentLanguage() {
return this.languageList[this.languageType] || 'Language' return this.languageList[this.languageType] || 'Language'
}, },
welcomeTitle() {
let title = window.systemInfo.title || "Dootask";
if (title == "PublicDooTask") {
return "Public DooTask"
} else {
return "Welcome " + title
}
},
loginText() { loginText() {
let text = this.loginType == 'login' ? '登录' : '注册'; let text = this.loginType == 'login' ? '登录' : '注册';
if (this.loginJump) { if (this.loginJump) {
@ -175,10 +183,12 @@ export default {
}); });
}, },
chackServerUrl() { chackServerUrl(tip) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
if (this.isNotServer()) { if (this.isNotServer()) {
if (tip === true) {
$A.messageWarning("请设置服务器") $A.messageWarning("请设置服务器")
}
this.inputServerUrl() this.inputServerUrl()
reject() reject()
} else { } else {
@ -225,7 +235,7 @@ export default {
}, },
onLogin() { onLogin() {
this.chackServerUrl().then(() => { this.chackServerUrl(true).then(() => {
if (!this.email) { if (!this.email) {
return; return;
} }