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) {