diff --git a/biji-qianduan/src/components/LoginPage.vue b/biji-qianduan/src/components/LoginPage.vue
index 10adec7..2685729 100644
--- a/biji-qianduan/src/components/LoginPage.vue
+++ b/biji-qianduan/src/components/LoginPage.vue
@@ -23,7 +23,7 @@
安全登录
- 立即注册
+ 立即注册
@@ -38,14 +38,12 @@
import { ref, onMounted } from 'vue';
import { useRouter } from 'vue-router';
import { useUserStore } from '../stores/user';
-import { getRegistrationStatus } from '../api/CommonApi';
import { ElMessage } from 'element-plus';
import { User, Lock } from '@element-plus/icons-vue';
const router = useRouter();
const userStore = useUserStore();
const loginFormRef = ref(null);
-const isRegistrationEnabled = ref(true);
const loginForm = ref({
username: '',
@@ -78,16 +76,6 @@ const goToHome = () => {
router.push('/home');
};
-onMounted(async () => {
- try {
- const response = await getRegistrationStatus();
- isRegistrationEnabled.value = response.data;
- } catch (error) {
- console.error("Failed to fetch registration status:", error);
- // 保守起见,如果获取失败则禁用注册按钮
- isRegistrationEnabled.value = false;
- }
-});