chore: remove redundant imports

This commit is contained in:
xiangshu233 2024-03-13 21:47:22 +08:00
parent a3ec4ffce6
commit 43d53515b3
23 changed files with 3 additions and 33 deletions

View File

@ -13,8 +13,7 @@
</template>
<script setup lang="ts">
import { computed, unref } from 'vue'
import { darken, lighten } from '@/utils/index'
import { darken, lighten } from '@/utils'
import { useRouteStore } from '@/store/modules/route'
import { useDesignSetting } from '@/hooks/setting/useDesignSetting'

View File

@ -43,7 +43,7 @@
<script setup lang="ts">
import { useDesignSettingStore } from '@/store/modules/designSetting'
import { hexToRgba } from '@/utils/index'
import { hexToRgba } from '@/utils'
import { appThemeList } from '@/settings/designSetting'
const defaultAppTheme = appThemeList[0]

View File

@ -6,7 +6,6 @@
<script lang="ts">
import type { CSSProperties } from 'vue'
import { computed, defineComponent } from 'vue'
export default defineComponent({
name: 'SvgIcon',

View File

@ -3,7 +3,7 @@ import axios from 'axios'
import qs from 'qs'
import { isFunction } from '@/utils/is/index'
import { isFunction } from '@/utils/is'
// 声明一个 Map 用于存储每个请求的标识 和 取消函数
let pendingMap = new Map<string, Canceler>()

View File

@ -26,7 +26,6 @@
</template>
<script setup lang="ts">
import { computed } from 'vue'
import { useDesignSettingStore } from '@/store/modules/designSetting'
import { useGlobSetting } from '@/hooks/setting'
import Logo from '@/components/Logo.vue'

View File

@ -14,7 +14,6 @@
</template>
<script setup lang="ts">
import { ref } from 'vue'
import { useDark, useToggle } from '@vueuse/core'
import { useDesignSettingStore } from '@/store/modules/designSetting'

View File

@ -15,8 +15,6 @@
</template>
<script lang="ts" setup>
import { useRouter } from 'vue-router'
const router = useRouter()
function goHome() {
router.push('/')

View File

@ -15,8 +15,6 @@
</template>
<script lang="ts" setup>
import { useRouter } from 'vue-router'
const router = useRouter()
function goHome() {
router.push('/')

View File

@ -15,8 +15,6 @@
</template>
<script lang="ts" setup>
import { useRouter } from 'vue-router'
const router = useRouter()
function goHome() {
router.push('/')

View File

@ -64,7 +64,6 @@
</template>
<script setup lang="ts">
import { computed, reactive, ref, unref } from 'vue'
import type { FormInstance } from 'vant'
import { LoginStateEnum, useFormRules, useLoginState } from './useLogin'

View File

@ -59,8 +59,6 @@
</template>
<script setup lang="ts">
import { computed, onMounted, reactive, ref, unref } from 'vue'
import { useRoute, useRouter } from 'vue-router'
import { showFailToast, showLoadingToast, showSuccessToast } from 'vant'
import type { FormInstance } from 'vant'
import { LoginStateEnum, useFormRules, useLoginState } from './useLogin'

View File

@ -115,7 +115,6 @@
</template>
<script setup lang="ts">
import { computed, reactive, ref, unref } from 'vue'
import type { FormInstance } from 'vant'
import { LoginStateEnum, useFormRules, useLoginState } from './useLogin'

View File

@ -1,5 +1,4 @@
import type { FieldRule } from 'vant'
import { computed, ref, unref } from 'vue'
export enum LoginStateEnum {
LOGIN,

View File

@ -5,8 +5,6 @@
</template>
<script setup lang="ts">
import type { Ref } from 'vue'
import { onMounted, ref } from 'vue'
import type { EChartsOption } from 'echarts'
import { useECharts } from '@/hooks/web/useECharts'

View File

@ -5,8 +5,6 @@
</template>
<script setup lang="ts">
import type { Ref } from 'vue'
import { onMounted, ref } from 'vue'
import type { EChartsOption } from 'echarts'
import { useECharts } from '@/hooks/web/useECharts'

View File

@ -5,8 +5,6 @@
</template>
<script setup lang="ts">
import type { Ref } from 'vue'
import { onMounted, ref } from 'vue'
import type { EChartsOption } from 'echarts'
import { useECharts } from '@/hooks/web/useECharts'

View File

@ -34,7 +34,6 @@
</template>
<script setup lang="ts">
import { computed } from 'vue'
import NavBar from './components/NavBar.vue'
import { useUserStore } from '@/store/modules/user'

View File

@ -28,7 +28,6 @@
</template>
<script setup lang="ts">
import { onMounted, reactive, ref } from 'vue'
import type { FormInstance } from 'vant'
import { showToast } from 'vant'
import NavBar from './components/NavBar.vue'

View File

@ -24,7 +24,6 @@
</template>
<script setup lang="ts">
import { onMounted, reactive, ref } from 'vue'
import type { FormInstance } from 'vant'
import { showToast } from 'vant'
import NavBar from './components/NavBar.vue'

View File

@ -112,7 +112,6 @@
</template>
<script setup lang="ts">
import { onMounted, reactive, ref } from 'vue'
import { showToast } from 'vant'
import NavBar from './components/NavBar.vue'
import UploaderImage from './components/UploaderImage.vue'

View File

@ -68,7 +68,6 @@
</template>
<script setup lang="ts">
import { computed, reactive } from 'vue'
import { useDark, useToggle } from '@vueuse/core'
import NavBar from './components/NavBar.vue'
import { useDesignSettingStore } from '@/store/modules/designSetting'

View File

@ -13,9 +13,6 @@
</template>
<script setup lang="ts">
import { useRoute, useRouter } from 'vue-router'
import { computed } from 'vue'
const router = useRouter()
const currentRoute = useRoute()

View File

@ -63,7 +63,6 @@
</template>
<script lang="ts" setup>
import { computed, ref } from 'vue'
import { showToast } from 'vant'
import { useUserStore } from '@/store/modules/user'