LiuJ пре 3 недеља
родитељ
комит
480f78f9ac
1 измењених фајлова са 10 додато и 2 уклоњено
  1. 10 2
      src/views/dashboard/admin/index.vue

+ 10 - 2
src/views/dashboard/admin/index.vue

@@ -89,7 +89,7 @@
             <div class="chart-wrapper">
               <!-- 展示文章列表 -->
               <!-- 列表 -->
-              <el-table :data="type_id1.article" style="width: 100%" @click="handleClick">
+              <el-table :data="type_id1.article" style="width: 100%" @row-click="handleClick">
                 <el-table-column prop="title" label="标题" width="">
                 </el-table-column>
 
@@ -168,7 +168,15 @@ export default {
   },
   methods: {
     handleClick(row) {
-      this.$router.push({ path: '/articleList/' + row.id })
+      console.log(row, '----------------1---')
+      //跳转
+      this.$router.push({
+        path: '/articleList',
+        query: {
+          id: row.id
+        }
+      })
+
     },
     // 获取首页数据
     //获取用户身份信息