Commit 52388705c08ac772498dcdff7c841e59d2ea4bab

Authored by xingyu
1 parent 6f1f24b4

refactor

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