mirror of
				https://gitee.com/hhyykk/ipms-sjy-ui.git
				synced 2025-11-04 20:28:45 +08:00 
			
		
		
		
	refactor: vue3.3 defineOptions
This commit is contained in:
		@@ -160,7 +160,7 @@
 | 
			
		||||
    </el-col>
 | 
			
		||||
  </el-row>
 | 
			
		||||
</template>
 | 
			
		||||
<script setup lang="ts" name="Home">
 | 
			
		||||
<script setup lang="ts">
 | 
			
		||||
import { set } from 'lodash-es'
 | 
			
		||||
import { EChartsOption } from 'echarts'
 | 
			
		||||
import { formatTime } from '@/utils'
 | 
			
		||||
@@ -171,6 +171,8 @@ import avatarImg from '@/assets/imgs/avatar.gif'
 | 
			
		||||
import type { WorkplaceTotal, Project, Notice, Shortcut } from './types'
 | 
			
		||||
import { pieOptions, barOptions } from './echarts-data'
 | 
			
		||||
 | 
			
		||||
defineOptions({ name: 'Home' })
 | 
			
		||||
 | 
			
		||||
const { t } = useI18n()
 | 
			
		||||
const userStore = useUserStore()
 | 
			
		||||
const { setWatermark } = useWatermark()
 | 
			
		||||
 
 | 
			
		||||
@@ -140,7 +140,7 @@
 | 
			
		||||
    </el-col>
 | 
			
		||||
  </el-row>
 | 
			
		||||
</template>
 | 
			
		||||
<script lang="ts" name="Home2" setup>
 | 
			
		||||
<script lang="ts" setup>
 | 
			
		||||
import { set } from 'lodash-es'
 | 
			
		||||
import { EChartsOption } from 'echarts'
 | 
			
		||||
 | 
			
		||||
@@ -148,6 +148,8 @@ import { useDesign } from '@/hooks/web/useDesign'
 | 
			
		||||
import type { AnalysisTotalTypes } from './types'
 | 
			
		||||
import { barOptions, lineOptions, pieOptions } from './echarts-data'
 | 
			
		||||
 | 
			
		||||
defineOptions({ name: 'Home2' })
 | 
			
		||||
 | 
			
		||||
const { t } = useI18n()
 | 
			
		||||
const loading = ref(true)
 | 
			
		||||
const { getPrefixCls } = useDesign()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user