diff --git a/src/components/DescriptionList/DescriptionList.vue b/src/components/DescriptionList/DescriptionList.vue deleted file mode 100644 index 7a376db2..00000000 --- a/src/components/DescriptionList/DescriptionList.vue +++ /dev/null @@ -1,153 +0,0 @@ - - - - - diff --git a/src/components/DescriptionList/index.js b/src/components/DescriptionList/index.js deleted file mode 100644 index 7aed83d4..00000000 --- a/src/components/DescriptionList/index.js +++ /dev/null @@ -1,2 +0,0 @@ -import DescriptionList from './DescriptionList' -export default DescriptionList diff --git a/src/components/SettingDrawer/SettingDrawer.vue b/src/components/SettingDrawer/SettingDrawer.vue index c001859b..227bebd7 100644 --- a/src/components/SettingDrawer/SettingDrawer.vue +++ b/src/components/SettingDrawer/SettingDrawer.vue @@ -191,7 +191,6 @@ diff --git a/src/components/Tools/SideProfile.vue b/src/components/Tools/SideProfile.vue deleted file mode 100644 index f64c0c3a..00000000 --- a/src/components/Tools/SideProfile.vue +++ /dev/null @@ -1,40 +0,0 @@ - - - - - diff --git a/src/components/global.less b/src/components/global.less index 6efd1df1..3f09a2b4 100644 --- a/src/components/global.less +++ b/src/components/global.less @@ -2,7 +2,7 @@ body { overflow-y: scroll; - padding: 0!important; + padding: 0 !important; } .layout.ant-layout { @@ -572,6 +572,18 @@ body { } } + +.ant-comment { + .ant-comment-actions { + margin-bottom: 0 !important; + padding-bottom: 0 !important; + } +} + +.ant-comment-inner { + padding: 0 !important; +} + .bottom-control { position: absolute; bottom: 0px; @@ -598,7 +610,8 @@ body { -webkit-box-direction: normal; -ms-flex-flow: row wrap; flex-flow: row wrap; - .ant-pagination-options-size-changer.ant-select{ - margin:0 + + .ant-pagination-options-size-changer.ant-select { + margin: 0 } } \ No newline at end of file diff --git a/src/components/index.js b/src/components/index.js index 89813d27..68da16ab 100644 --- a/src/components/index.js +++ b/src/components/index.js @@ -3,13 +3,11 @@ import Vue from 'vue' // pro components import Ellipsis from '@/components/Ellipsis' import FooterToolbar from '@/components/FooterToolbar' -import DescriptionList from '@/components/DescriptionList' import Upload from '@/components/Upload/Upload' const _components = { Ellipsis, FooterToolbar, - DescriptionList, Upload } diff --git a/src/config/router.config.js b/src/config/router.config.js index b42c8d17..a0df824c 100644 --- a/src/config/router.config.js +++ b/src/config/router.config.js @@ -172,18 +172,18 @@ export const asyncRouterMap = [ component: () => import('@/views/system/OptionForm'), meta: { title: '博客设置', hiddenHeaderContent: false } }, - { - path: '/system/backup', - name: 'BackupList', - component: () => import('@/views/system/BackupList'), - meta: { title: '博客备份', hiddenHeaderContent: false } - }, - { - path: '/system/tools', - name: 'ToolList', - component: () => import('@/views/system/ToolList'), - meta: { title: '小工具', hiddenHeaderContent: false } - }, + // { + // path: '/system/backup', + // name: 'BackupList', + // component: () => import('@/views/system/BackupList'), + // meta: { title: '博客备份', hiddenHeaderContent: false } + // }, + // { + // path: '/system/tools', + // name: 'ToolList', + // component: () => import('@/views/system/ToolList'), + // meta: { title: '小工具', hiddenHeaderContent: false } + // }, { path: '/system/about', name: 'About', diff --git a/src/utils/util.js b/src/utils/util.js index 236fdea1..38e46a9a 100644 --- a/src/utils/util.js +++ b/src/utils/util.js @@ -43,6 +43,7 @@ export function timeAgo(time) { } return hours + ' 小时前' } + if (days < 0) return '刚刚' if (days < 5) { return days + ' 天前' } else { diff --git a/src/views/dashboard/Dashboard.vue b/src/views/dashboard/Dashboard.vue index 695fd4f6..4ae5d76e 100644 --- a/src/views/dashboard/Dashboard.vue +++ b/src/views/dashboard/Dashboard.vue @@ -325,15 +325,3 @@ export default { } } - - diff --git a/src/views/post/PostList.vue b/src/views/post/PostList.vue index 4f9013af..1e344b42 100644 --- a/src/views/post/PostList.vue +++ b/src/views/post/PostList.vue @@ -76,7 +76,10 @@ - + 发布 - + 移到回收站 - + + {{ postTitle }}