diff --git a/src/layouts/components/Header.vue b/src/layouts/components/Header.vue index e869eb8..d3ab107 100644 --- a/src/layouts/components/Header.vue +++ b/src/layouts/components/Header.vue @@ -268,7 +268,8 @@ export default defineComponent({ } .header-logo-container { - width: 166px; + width: 184px; + height: 26px; display: flex; margin-left: 24px; color: @text-color-primary; diff --git a/src/pages/dashboard/base/index.vue b/src/pages/dashboard/base/index.vue index 0dc185e..b437b76 100644 --- a/src/pages/dashboard/base/index.vue +++ b/src/pages/dashboard/base/index.vue @@ -236,7 +236,9 @@ const getThisMonth = (checkedValues?: string[]) => { date = new Date(checkedValues[0]); const date2 = new Date(checkedValues[1]); - return `${date.getFullYear()}-${date.getMonth() + 1} 至 ${date2.getFullYear()}-${date2.getMonth() + 1}`; + const startMonth = date.getMonth() + 1 > 9 ? date.getMonth() + 1 : `0${date.getMonth() + 1}`; + const endMonth = date2.getMonth() + 1 > 9 ? date2.getMonth() + 1 : `0${date2.getMonth() + 1}`; + return `${date.getFullYear()}-${startMonth} 至 ${date2.getFullYear()}-${endMonth}`; }; export default defineComponent({ diff --git a/src/pages/dashboard/detail/index.vue b/src/pages/dashboard/detail/index.vue index 6a027a3..1862155 100644 --- a/src/pages/dashboard/detail/index.vue +++ b/src/pages/dashboard/detail/index.vue @@ -16,7 +16,7 @@ - +