Commit 52388705c08ac772498dcdff7c841e59d2ea4bab

Authored by xingyu
1 parent 6f1f24b4

refactor

yudao-ui-admin-vue3/src/views/Home/Index.vue
@@ -161,17 +161,17 @@ @@ -161,17 +161,17 @@
161 </el-row> 161 </el-row>
162 </template> 162 </template>
163 <script setup lang="ts"> 163 <script setup lang="ts">
164 -import { ElRow, ElCol, ElSkeleton, ElCard, ElDivider, ElLink } from 'element-plus'  
165 -import { useI18n } from '@/hooks/web/useI18n'  
166 import { ref, reactive } from 'vue' 164 import { ref, reactive } from 'vue'
167 -import { CountTo } from '@/components/CountTo' 165 +import { set } from 'lodash-es'
  166 +import { EChartsOption } from 'echarts'
  167 +import { ElRow, ElCol, ElSkeleton, ElCard, ElDivider, ElLink } from 'element-plus'
168 import { formatTime } from '@/utils' 168 import { formatTime } from '@/utils'
  169 +import { useI18n } from '@/hooks/web/useI18n'
  170 +import { useCache } from '@/hooks/web/useCache'
169 import { Echart } from '@/components/Echart' 171 import { Echart } from '@/components/Echart'
170 -import { EChartsOption } from 'echarts' 172 +import { CountTo } from '@/components/CountTo'
171 import { Highlight } from '@/components/Highlight' 173 import { Highlight } from '@/components/Highlight'
172 import type { WorkplaceTotal, Project, Notice, Shortcut } from './types' 174 import type { WorkplaceTotal, Project, Notice, Shortcut } from './types'
173 -import { set } from 'lodash-es'  
174 -import { useCache } from '@/hooks/web/useCache'  
175 import { pieOptions, barOptions } from './echarts-data' 175 import { pieOptions, barOptions } from './echarts-data'
176 176
177 const { t } = useI18n() 177 const { t } = useI18n()
yudao-ui-admin-vue3/src/views/Home/Index2.vue
@@ -144,12 +144,12 @@ @@ -144,12 +144,12 @@
144 import { ref, reactive } from 'vue' 144 import { ref, reactive } from 'vue'
145 import { set } from 'lodash-es' 145 import { set } from 'lodash-es'
146 import { EChartsOption } from 'echarts' 146 import { EChartsOption } from 'echarts'
147 -import { Echart } from '@/components/Echart' 147 +import { ElRow, ElCol, ElCard, ElSkeleton } from 'element-plus'
148 import { useI18n } from '@/hooks/web/useI18n' 148 import { useI18n } from '@/hooks/web/useI18n'
  149 +import { useDesign } from '@/hooks/web/useDesign'
  150 +import { Echart } from '@/components/Echart'
149 import { CountTo } from '@/components/CountTo' 151 import { CountTo } from '@/components/CountTo'
150 import type { AnalysisTotalTypes } from './types' 152 import type { AnalysisTotalTypes } from './types'
151 -import { useDesign } from '@/hooks/web/useDesign'  
152 -import { ElRow, ElCol, ElCard, ElSkeleton } from 'element-plus'  
153 import { pieOptions, barOptions, lineOptions } from './echarts-data' 153 import { pieOptions, barOptions, lineOptions } from './echarts-data'
154 154
155 const { t } = useI18n() 155 const { t } = useI18n()
yudao-ui-admin-vue3/src/views/Home/echarts-data.ts
1 import { EChartsOption } from 'echarts' 1 import { EChartsOption } from 'echarts'
2 -import { EChartsOption as EChartsWordOption } from 'echarts-wordcloud'  
3 import { useI18n } from '@/hooks/web/useI18n' 2 import { useI18n } from '@/hooks/web/useI18n'
  3 +import { EChartsOption as EChartsWordOption } from 'echarts-wordcloud'
4 4
5 const { t } = useI18n() 5 const { t } = useI18n()
6 6
yudao-ui-admin-vue3/src/views/Redirect/Redirect.vue
@@ -6,7 +6,6 @@ import { unref } from &#39;vue&#39; @@ -6,7 +6,6 @@ import { unref } from &#39;vue&#39;
6 import { useRouter } from 'vue-router' 6 import { useRouter } from 'vue-router'
7 7
8 const { currentRoute, replace } = useRouter() 8 const { currentRoute, replace } = useRouter()
9 -  
10 const { params, query } = unref(currentRoute) 9 const { params, query } = unref(currentRoute)
11 const { path, _redirect_type = 'path' } = params 10 const { path, _redirect_type = 'path' } = params
12 11