mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-23 07:41:53 +08:00
refactor
This commit is contained in:
parent
6f1f24b43e
commit
52388705c0
@ -161,17 +161,17 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ElRow, ElCol, ElSkeleton, ElCard, ElDivider, ElLink } from 'element-plus'
|
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { ref, reactive } from 'vue'
|
import { ref, reactive } from 'vue'
|
||||||
import { CountTo } from '@/components/CountTo'
|
import { set } from 'lodash-es'
|
||||||
import { formatTime } from '@/utils'
|
|
||||||
import { Echart } from '@/components/Echart'
|
|
||||||
import { EChartsOption } from 'echarts'
|
import { EChartsOption } from 'echarts'
|
||||||
|
import { ElRow, ElCol, ElSkeleton, ElCard, ElDivider, ElLink } from 'element-plus'
|
||||||
|
import { formatTime } from '@/utils'
|
||||||
|
import { useI18n } from '@/hooks/web/useI18n'
|
||||||
|
import { useCache } from '@/hooks/web/useCache'
|
||||||
|
import { Echart } from '@/components/Echart'
|
||||||
|
import { CountTo } from '@/components/CountTo'
|
||||||
import { Highlight } from '@/components/Highlight'
|
import { Highlight } from '@/components/Highlight'
|
||||||
import type { WorkplaceTotal, Project, Notice, Shortcut } from './types'
|
import type { WorkplaceTotal, Project, Notice, Shortcut } from './types'
|
||||||
import { set } from 'lodash-es'
|
|
||||||
import { useCache } from '@/hooks/web/useCache'
|
|
||||||
import { pieOptions, barOptions } from './echarts-data'
|
import { pieOptions, barOptions } from './echarts-data'
|
||||||
|
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
|
@ -144,12 +144,12 @@
|
|||||||
import { ref, reactive } from 'vue'
|
import { ref, reactive } from 'vue'
|
||||||
import { set } from 'lodash-es'
|
import { set } from 'lodash-es'
|
||||||
import { EChartsOption } from 'echarts'
|
import { EChartsOption } from 'echarts'
|
||||||
import { Echart } from '@/components/Echart'
|
import { ElRow, ElCol, ElCard, ElSkeleton } from 'element-plus'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
import { useI18n } from '@/hooks/web/useI18n'
|
||||||
|
import { useDesign } from '@/hooks/web/useDesign'
|
||||||
|
import { Echart } from '@/components/Echart'
|
||||||
import { CountTo } from '@/components/CountTo'
|
import { CountTo } from '@/components/CountTo'
|
||||||
import type { AnalysisTotalTypes } from './types'
|
import type { AnalysisTotalTypes } from './types'
|
||||||
import { useDesign } from '@/hooks/web/useDesign'
|
|
||||||
import { ElRow, ElCol, ElCard, ElSkeleton } from 'element-plus'
|
|
||||||
import { pieOptions, barOptions, lineOptions } from './echarts-data'
|
import { pieOptions, barOptions, lineOptions } from './echarts-data'
|
||||||
|
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { EChartsOption } from 'echarts'
|
import { EChartsOption } from 'echarts'
|
||||||
import { EChartsOption as EChartsWordOption } from 'echarts-wordcloud'
|
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
import { useI18n } from '@/hooks/web/useI18n'
|
||||||
|
import { EChartsOption as EChartsWordOption } from 'echarts-wordcloud'
|
||||||
|
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
|
|
||||||
|
@ -6,7 +6,6 @@ import { unref } from 'vue'
|
|||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
|
|
||||||
const { currentRoute, replace } = useRouter()
|
const { currentRoute, replace } = useRouter()
|
||||||
|
|
||||||
const { params, query } = unref(currentRoute)
|
const { params, query } = unref(currentRoute)
|
||||||
const { path, _redirect_type = 'path' } = params
|
const { path, _redirect_type = 'path' } = params
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user