From 2214cd3cdd940dcca13c09498635187249422222 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=99=88=E4=BD=B3=E6=85=A7?= <2488672761@qq.com>
Date: Thu, 19 Dec 2024 23:53:08 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E8=8D=90=E9=A1=B5=E9=9D=A2=E8=B7=B3?=
=?UTF-8?q?=E8=BD=AC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/recommend/PreferenceForm.vue | 5 +++--
src/router/index.js | 9 +++++++++
src/views/recommend/index.vue | 9 +++++++--
3 files changed, 19 insertions(+), 4 deletions(-)
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 @@