+
+
+ {{ t('common.no_menu_tips') }}
+
+
+
+
+
diff --git a/core/core-frontend/src/views/login/index.vue b/core/core-frontend/src/views/login/index.vue
index 31a1d936f9..0e2af9b670 100644
--- a/core/core-frontend/src/views/login/index.vue
+++ b/core/core-frontend/src/views/login/index.vue
@@ -229,7 +229,12 @@ onMounted(async () => {
loadArrearance()
if (!checkPlatform()) {
const res = await loginCategoryApi()
- if (res.data) {
+ const adminLogin = router.currentRoute?.value?.name === 'admin-login'
+ if (adminLogin && !res.data) {
+ router.push('/401')
+ return
+ }
+ if (res.data && !adminLogin) {
loadingText.value = '加载中...'
document.getElementsByClassName('ed-loading-text')?.length &&
(document.getElementsByClassName('ed-loading-text')[0]['innerText'] = loadingText.value)