账号列表登录提示改为90天
parent
f34faa7db3
commit
485a53011d
|
@ -26,7 +26,7 @@
|
|||
<!-- 选择自定义slot -->
|
||||
<template slot="tip-slot" slot-scope="{ scope }">
|
||||
<i
|
||||
v-if="diffTime(scope.row.LastLoginTime) >= 6"
|
||||
v-if="diffTime(scope.row.LastLoginTime) >= 90"
|
||||
class="el-icon-warning"
|
||||
style="color: #f56c6c"
|
||||
:title="$t('system:userlist:tip:overTime')"
|
||||
|
@ -363,7 +363,7 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
diffTime(time) {
|
||||
return moment(new Date()).diff(time, 'months')
|
||||
return moment(new Date()).diff(time, 'days')
|
||||
},
|
||||
// 获取用户信息
|
||||
getList() {
|
||||
|
|
Loading…
Reference in New Issue