Refactor API requests and update component imports

This commit is contained in:
wangqiao
2025-08-18 14:28:10 +08:00
parent 07b4d3de99
commit 9ae3abeded
91 changed files with 669 additions and 884 deletions

View File

@ -14,9 +14,10 @@
</template>
<script setup lang="ts">
import { PropType, ref, watch } from 'vue'
import { recommendTop } from '@/api/upnew/index'
import { recommendTopRes } from '@/api/upnew/types'
import type { PropType} from 'vue'
import { ref, watch } from 'vue'
import { recommendTop } from '~/api/upnew/index'
import type { recommendTopRes } from '~/api/upnew/types'
const props = defineProps({
type: {
type: Number as PropType<1 | 2 | 3>,

View File

@ -17,11 +17,11 @@
</template>
<script lang="ts" setup>
import KlTabBar from '@/components/kl-tab-bar/index.vue'
import CardPicture from '@/components/kl-card-picture/index.vue'
import KlTabBar from '~/components/kl-tab-bar/index.vue'
import CardPicture from '~/components/kl-card-picture/index.vue'
import { ref } from 'vue'
import { pageRes, pageReq } from '@/api/upnew/types'
import emptyImg from '@/assets/images/empty.png'
import type { pageRes, pageReq } from '~/api/upnew/types'
import emptyImg from '~/assets/images/empty.png'
const query = defineModel<pageReq>('modelValue', {
required: true,

View File

@ -23,14 +23,14 @@
</div>
</template>
<script setup lang="ts">
import KlNavTab from '@/components/kl-nav-tab/index.vue'
import KlWallpaperCategory from '@/components/kl-wallpaper-category/index.vue'
import KlNavTab from '~/components/kl-nav-tab/index.vue'
import KlWallpaperCategory from '~/components/kl-wallpaper-category/index.vue'
import RecommendedColumnsV2 from './components/RecommendedColumnsV2.vue'
// import FeaturedSpecials from './components/FeaturedSpecials.vue'
import { useRoute } from 'vue-router'
import { reactive, watch, ref } from 'vue'
import { page } from '@/api/upnew/index'
import { pageRes, pageReq } from '@/api/upnew/types'
import { page } from '~/api/upnew/index'
import type { pageRes, pageReq } from '~/api/upnew/types'
const route = useRoute()
const level = ref(
route.query.level