chore: 优化部分代码

This commit is contained in:
2024-11-14 21:59:22 +08:00
parent 011643226c
commit ce09f737c3
55 changed files with 58 additions and 63 deletions

View File

@@ -6,7 +6,7 @@
</a-spin>
</template>
<script lang="ts" setup>
<script setup lang="ts">
import { type EChartsOption, graphic } from 'echarts'
import { useChart } from '@/hooks'
import { type DashboardChartCommonResp, getAnalysisTimeslot as getData } from '@/apis/common'

View File

@@ -8,7 +8,7 @@
</a-spin>
</template>
<script lang="ts" setup>
<script setup lang="ts">
import type { EChartsOption } from 'echarts'
import { useChart } from '@/hooks'
import { type DashboardChartCommonResp, getAnalysisBrowser as getData } from '@/apis/common'

View File

@@ -37,7 +37,7 @@
</a-spin>
</template>
<script lang="ts" setup>
<script setup lang="ts">
import { computed } from 'vue'
import { useChart } from '@/hooks'
import { useAppStore } from '@/stores'

View File

@@ -37,7 +37,7 @@
</a-spin>
</template>
<script lang="ts" setup>
<script setup lang="ts">
import { computed } from 'vue'
import { useChart } from '@/hooks'
import { useAppStore } from '@/stores'

View File

@@ -37,7 +37,7 @@
</a-spin>
</template>
<script lang="ts" setup>
<script setup lang="ts">
import { computed } from 'vue'
import { useChart } from '@/hooks'
import { useAppStore } from '@/stores'

View File

@@ -37,7 +37,7 @@
</a-spin>
</template>
<script lang="ts" setup>
<script setup lang="ts">
import { computed } from 'vue'
import { useChart } from '@/hooks'
import { useAppStore } from '@/stores'

View File

@@ -20,7 +20,7 @@
</a-card>
</template>
<script lang="ts" setup>
<script setup lang="ts">
import Pv from './Pv.vue'
import Ip from './Ip.vue'
import Demo1 from './Demo1.vue'

View File

@@ -25,7 +25,7 @@
</a-spin>
</template>
<script lang="ts" setup>
<script setup lang="ts">
import type { EChartsOption } from 'echarts'
import { getAnalysisGeo as getData } from '@/apis/common/dashboard'
import { useChart } from '@/hooks'

View File

@@ -8,7 +8,7 @@
</a-spin>
</template>
<script lang="ts" setup>
<script setup lang="ts">
import type { EChartsOption } from 'echarts'
import { useChart } from '@/hooks'
import { type DashboardChartCommonResp, getAnalysisModule as getData } from '@/apis/common'

View File

@@ -8,7 +8,7 @@
</a-spin>
</template>
<script lang="ts" setup>
<script setup lang="ts">
import type { EChartsOption } from 'echarts'
import { useChart } from '@/hooks'
import { type DashboardChartCommonResp, getAnalysisOs as getData } from '@/apis/common'

View File

@@ -19,7 +19,7 @@
</a-carousel>
</template>
<script lang="ts" setup>
<script setup lang="ts">
const images = [
{
src: `https://continew.top/qrcode-text.jpg?${new Date().getTime()}`,

View File

@@ -103,7 +103,7 @@
</a-card>
</template>
<script lang="ts" setup>
<script setup lang="ts">
import dayjs from 'dayjs'
import relativeTime from 'dayjs/plugin/relativeTime'
import axios, { type AxiosRequestConfig, type AxiosResponse } from 'axios'

View File

@@ -35,7 +35,7 @@
<NoticeDetailModal ref="NoticeDetailModalRef" />
</template>
<script lang="ts" setup>
<script setup lang="ts">
import { type DashboardNoticeResp, listDashboardNotice } from '@/apis'
import { useDict } from '@/hooks/app'
import NoticeDetailModal from '@/views/system/notice/NoticeDetailModal.vue'

View File

@@ -63,7 +63,7 @@
</a-card>
</template>
<script lang="ts" setup>
<script setup lang="ts">
const list = [
{
alias: 'ContiNew Admin',

View File

@@ -24,7 +24,7 @@
</a-card>
</template>
<script lang="ts" setup>
<script setup lang="ts">
const router = useRouter()
const links = [