Selaa lähdekoodia

fix: 修改 useIndex 错误名称

MTrun 4 vuotta sitten
vanhempi
commit
164169382c
2 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 1 1
      src/utils/useDraw.ts
  2. 2 2
      src/views/index/index.vue

+ 1 - 1
src/utils/useDraw.ts

@@ -1,6 +1,6 @@
 import { ref } from 'vue'
 
-export default function useIndex() {
+export default function useDraw() {
   // * 指向最外层容器
   const appRef = ref()
   // * 定时函数

+ 2 - 2
src/views/index/index.vue

@@ -102,7 +102,7 @@ import {
 } from 'vue'
 import { formatTime } from '@/utils/index'
 import { WEEK } from '@/constant/index'
-import useIndex from '@/utils/useDraw'
+import useDraw from '@/utils/useDraw'
 import { title, subtitle, moduleInfo } from '@/constant/index'
 import CenterLeft1 from '../centerLeft1/index.vue'
 import CenterLeft2 from '../centerLeft2/index.vue'
@@ -133,7 +133,7 @@ export default defineComponent({
       dateWeek: ''
     })
     // * 适配处理
-    const { appRef, calcRate, windowDraw } = useIndex()
+    const { appRef, calcRate, windowDraw } = useDraw()
     // 生命周期
     onMounted(() => {
       cancelLoading()