From 53bcb7e5dffa071d2c6593f5db7f0b6e4e2f8dfe Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Wed, 18 Oct 2023 16:17:02 +0800
Subject: [PATCH] 隐藏重复定时和连续执行
---
src/pages/page-pilot/pilot-index.vue | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/pages/page-pilot/pilot-index.vue b/src/pages/page-pilot/pilot-index.vue
index 5a5d56b..bb1dbc9 100644
--- a/src/pages/page-pilot/pilot-index.vue
+++ b/src/pages/page-pilot/pilot-index.vue
@@ -81,7 +81,7 @@
})
const jsres = apiPilot.loadComponent(EComponentName.Api, apiPilot.getComponentParam(EComponentName.Api))
if (!jsres) {
- message.error('Failed to load api module.')
+ message.error('加载api模块失败')
return
}
apiPilot.setToken(res.data.access_token)
@@ -97,7 +97,7 @@
await login(formState)
.then(res => {
if (!isVerified.value) {
- message.error('Please verify the license firstly.')
+ message.error('请先核实许可证.')
return
}
console.log('login res:', res)
@@ -117,7 +117,7 @@
localStorage.setItem(ELocalStorageKey.UserId, res.data.user_id)
localStorage.setItem(ELocalStorageKey.Username, res.data.username)
localStorage.setItem(ELocalStorageKey.Flag, EUserType.Pilot.toString())
- message.success('Login Success')
+ message.success('登录成功')
root.$router.push(ERouterName.PILOT_HOME)
}
})
@@ -130,9 +130,9 @@
isVerified.value = apiPilot.platformVerifyLicense(CURRENT_CONFIG.appId, CURRENT_CONFIG.appKey, CURRENT_CONFIG.appLicense) &&
apiPilot.isPlatformVerifySuccess()
if (isVerified.value) {
- message.success('The license verification is successful.')
+ message.success('license验证成功')
} else {
- message.error('Filed to verify the license. Please check license whether the license is correct, or apply again.')
+ message.error('申请license验证。请检查license是否正确,或者重新申请')
}
}
</script>
--
Gitblit v1.9.3