From 0e137b70c2cc77bea3d155b8a5236fdd523ae779 Mon Sep 17 00:00:00 2001 From: Fromnowon Date: Tue, 24 Dec 2019 18:14:31 +0800 Subject: [PATCH 1/2] Update contestRankMixin.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复显示realname时显示错误 --- src/pages/oj/views/contest/children/contestRankMixin.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/oj/views/contest/children/contestRankMixin.js b/src/pages/oj/views/contest/children/contestRankMixin.js index 782e900..b593dfe 100644 --- a/src/pages/oj/views/contest/children/contestRankMixin.js +++ b/src/pages/oj/views/contest/children/contestRankMixin.js @@ -80,7 +80,7 @@ export default { this.columns.splice(2, 0, { title: 'RealName', align: 'center', - width: '150px', + width: 150, render: (h, {row}) => { return h('span', row.user.real_name) } @@ -88,6 +88,7 @@ export default { } else { this.columns.splice(2, 1) } + console.log(this.columns) } }, forceUpdate: { From 6360bebf6c9af92114261c0fdfd564bc6084915a Mon Sep 17 00:00:00 2001 From: Fromnowon Date: Tue, 24 Dec 2019 18:16:35 +0800 Subject: [PATCH 2/2] Update contestRankMixin.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复排名开启realname时显示错误 --- src/pages/oj/views/contest/children/contestRankMixin.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pages/oj/views/contest/children/contestRankMixin.js b/src/pages/oj/views/contest/children/contestRankMixin.js index b593dfe..e053fce 100644 --- a/src/pages/oj/views/contest/children/contestRankMixin.js +++ b/src/pages/oj/views/contest/children/contestRankMixin.js @@ -88,7 +88,6 @@ export default { } else { this.columns.splice(2, 1) } - console.log(this.columns) } }, forceUpdate: {