统一导入

This commit is contained in:
2025-10-05 20:07:41 +08:00
parent 2b93a9e849
commit 7e6d03ca1a
77 changed files with 211 additions and 211 deletions

View File

@@ -1,10 +1,10 @@
<script setup lang="ts">
import { Icon } from "@iconify/vue"
import { NH2, NH3 } from "naive-ui"
import { getProfile } from "~/shared/api"
import { isDesktop } from "~/shared/composables/breakpoints"
import { durationToDays, parseTime } from "~/utils/functions"
import { Profile } from "~/utils/types"
import { getProfile } from "shared/api"
import { isDesktop } from "shared/composables/breakpoints"
import { durationToDays, parseTime } from "utils/functions"
import { Profile } from "utils/types"
import { getMetrics } from "../api"
const route = useRoute()

View File

@@ -45,10 +45,10 @@
<script lang="ts" setup>
import { getMessageList } from "oj/api"
import { JUDGE_STATUS, LANGUAGE_FORMAT_VALUE } from "utils/constants"
import Copy from "~/shared/components/Copy.vue"
import Pagination from "~/shared/components/Pagination.vue"
import { parseTime } from "~/utils/functions"
import { Message } from "~/utils/types"
import Copy from "shared/components/Copy.vue"
import Pagination from "shared/components/Pagination.vue"
import { parseTime } from "utils/functions"
import { Message } from "utils/types"
const router = useRouter()
const messages = ref<Message[]>([])

View File

@@ -1,6 +1,6 @@
<script setup lang="ts">
import { updateProfile, uploadAvatar } from "oj/api"
import { useUserStore } from "~/shared/store/user"
import { useUserStore } from "shared/store/user"
const userStore = useUserStore()
const message = useMessage()