diff --git a/src/components/ScoreForm.vue b/src/components/ScoreForm.vue index 9d0f807..c2b752a 100644 --- a/src/components/ScoreForm.vue +++ b/src/components/ScoreForm.vue @@ -60,8 +60,6 @@ const electiveOptions = [ { label: '政治', value: '政治' }, { label: '化学', value: '化学' }, { label: '生物', value: '生物' }, - { label: '历史', value: '历史' }, - { label: '物理', value: '物理' }, ] const majorCategoryOptions = [ @@ -97,6 +95,7 @@ function getSubMajorOptions() { } function handleElectiveChange(value: string) { + console.warn('handleElectiveChange', value) const index = selectedElectives.value.indexOf(value) if (index === -1) { if (selectedElectives.value.length < 2) { @@ -229,6 +228,7 @@ async function handleSubmit() { try { isSubmitting.value = true + console.warn('requestData:', requestData) await scoreStore.saveScore(requestData) // 刷新本地数据 scoreStore.fetchScore() @@ -236,7 +236,7 @@ async function handleSubmit() { // 抛出事件 emit('confirm', formData) } catch (e: any) { - message.error(e.message || '保存失败') + //message.error(e.message || '保存失败') } finally { isSubmitting.value = false } diff --git a/src/pages/index.vue b/src/pages/index.vue index fdc0d32..65d61c3 100644 --- a/src/pages/index.vue +++ b/src/pages/index.vue @@ -89,6 +89,7 @@ const carouselImages = [ // Carousel state const currentSlide = ref(0) +const isLoginModalOpen = ref(false) let carouselInterval: any // Auto-play carousel @@ -491,6 +492,25 @@ const filteredSchools = computed(() => { + + +