From e7ee3b6d22f38cfd27e7a6bf0ea413a41a0c5a81 Mon Sep 17 00:00:00 2001 From: johnniang Date: Fri, 12 Apr 2019 10:42:03 +0800 Subject: [PATCH] Fix warning: rowKey was not set in a-table component --- src/views/interface/MenuList.vue | 1 + src/views/page/PageList.vue | 47 +++++++++++++---- src/views/page/internal/LinkList.vue | 77 +++++++++++++++++++++------- 3 files changed, 98 insertions(+), 27 deletions(-) diff --git a/src/views/interface/MenuList.vue b/src/views/interface/MenuList.vue index 36e85b56..f1b4c75c 100644 --- a/src/views/interface/MenuList.vue +++ b/src/views/interface/MenuList.vue @@ -74,6 +74,7 @@ :columns="columns" :dataSource="menus" :loading="loading" + :rowKey="menu => menu.id" >
- +
- - - - 查看 - - + + + + 查看 + + 编辑 - + 编辑 - 自定义页面 + 自定义页面
diff --git a/src/views/page/internal/LinkList.vue b/src/views/page/internal/LinkList.vue index a07153b6..f0e93bea 100644 --- a/src/views/page/internal/LinkList.vue +++ b/src/views/page/internal/LinkList.vue @@ -7,20 +7,27 @@ :md="10" :sm="24" :xs="24" - :style="{ 'padding-bottom': '12px' }"> + :style="{ 'padding-bottom': '12px' }" + > - + - - + + - + - - + + - 保存 + 保存 - 更新 - 返回添加 + 更新 + 返回添加 @@ -45,16 +63,39 @@ :md="14" :sm="24" :xs="24" - :style="{ 'padding-bottom': '12px' }"> + :style="{ 'padding-bottom': '12px' }" + > - -