diff --git a/src/recommend/PreferenceForm.vue b/src/recommend/PreferenceForm.vue index 48eca9e2..5ae8ada2 100644 --- a/src/recommend/PreferenceForm.vue +++ b/src/recommend/PreferenceForm.vue @@ -273,7 +273,7 @@ export default { musicTypes: [{ required: true, message: '请选择喜欢的音乐类型', trigger: 'change' }], movieTypes: [{ required: true, message: '请选择喜欢的电影类型', trigger: 'change' }], lifeValue: [{ required: true, message: '请选择生活价值观', trigger: 'change' }], - religion: [{ required: true, message: '请选宗教信仰', trigger: 'change' }], + religion: [{ required: true, message: '请选���教信仰', trigger: 'change' }], relationshipType: [{ required: true, message: '请选择关系类型', trigger: 'change' }], maritalStatus: [{ required: true, message: '请选择婚姻状况', trigger: 'change' }], minIncome: [{ required: true, message: '请选择最低收入', trigger: 'change' }], @@ -331,7 +331,8 @@ export default { if (valid) { // 在这里发送表单数据到后端 this.submitData(this.formData); - this.$router.push("/result"); + // 修改跳转路径到 Recommenduser 页面 + this.$router.push('/main/recommend/recommenduser'); } else { this.$message.error("请检查表单填写是否正确"); } diff --git a/src/router/index.js b/src/router/index.js index 574eec5a..21f4a875 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -43,6 +43,15 @@ const routes = [ { path:'familyTree', component:familyTree + }, + { + path:'recommend/preference', + component: () => import('@/recommend/PreferenceForm.vue') + }, + { + path:'recommend/recommenduser', + name: 'RecommendUserPage', + component: () => import('@/views/recommend/Recommenduser.vue') } diff --git a/src/views/recommend/index.vue b/src/views/recommend/index.vue index 4975db57..7b31cd9e 100644 --- a/src/views/recommend/index.vue +++ b/src/views/recommend/index.vue @@ -1,14 +1,19 @@