From 8159f977019a17520c11e5f91e1f4141d63fe213 Mon Sep 17 00:00:00 2001 From: ag <2663588772@qq.com> Date: Fri, 14 Feb 2025 11:15:37 +0800 Subject: [PATCH] =?UTF-8?q?cellsysMember.js=20=E6=96=B0=E5=A2=9E=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E6=97=B6=E9=97=B4=E5=92=8C=E4=BF=AE=E6=94=B9=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E6=A0=BC=E5=BC=8F=E5=8C=96=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cellsysMember.js | 7 ++++++- utils/axios.js | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/cellsysMember.js b/cellsysMember.js index cadee99..2e06f29 100644 --- a/cellsysMember.js +++ b/cellsysMember.js @@ -51,7 +51,12 @@ class CellsysMember { return formatterDate(this.dateTime, 'YYYY-MM-DD HH:mm'); } } - + get createTimeFormat() { + return formatterDate(this.createTime); + } + get updateTimeFormat() { + return formatterDate(this.updateTime); + } setLeader(value) { if (value && value === 1) { this.isLeader = 1; diff --git a/utils/axios.js b/utils/axios.js index 85f7f01..107b5b5 100644 --- a/utils/axios.js +++ b/utils/axios.js @@ -31,9 +31,9 @@ service.interceptors.request.use( }, ); +//这里需要注意的是,由于历史原因,axios的response的成功回调格式是在本文件中封装,而失败回调的格式是在引用CellsysBase的项目中按需进行封装。 service.interceptors.response.use( (response) => { - debugger; let data; if (response.data === undefined || response.data == null) { switch (response.status) {