Browse Source

查看详情

zs 1 năm trước cách đây
mục cha
commit
49247c5f0a

+ 1 - 1
src/views/achievement/detail.vue

@@ -174,7 +174,7 @@ const toChat = () => {
 }
 // 进入单位
 const toUnit = () => {
-  console.log('进入单位')
+  router.push({ path: '/company/detail', query: { id: info.value.id || info.value._id } })
 }
 // 收藏
 const toCollection = () => {

+ 4 - 0
src/views/company/detail.vue

@@ -225,6 +225,10 @@ const toChat = () => {
 const toCollection = () => {
   console.log('收藏')
 }
+// 查看
+const toView = (item) => {
+  router.push({ path: '/achievement/detail', query: { id: item.id || item._id } })
+}
 const currentPage = ref(1)
 // 分页
 const changePage = (page = currentPage.value) => {

+ 4 - 0
src/views/expert/detail.vue

@@ -193,6 +193,10 @@ const toChat = () => {
 const toCollection = () => {
   console.log('收藏')
 }
+// 查看
+const toView = (item) => {
+  router.push({ path: '/achievement/detail', query: { id: item.id || item._id } })
+}
 const currentPage = ref(1)
 // 分页
 const changePage = (page = currentPage.value) => {