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

@ -16,10 +16,10 @@
<script lang="ts" setup>
import { ref, reactive, watch } from 'vue'
import KlTabBar from '@/components/kl-tab-bar/index.vue'
import CardPicture from '@/components/kl-card-picture/index.vue'
import { recommendTop } from '@/api/home/index'
import { ProjectDrawPageRespVO } from '@/api/home/type'
import KlTabBar from '~/components/kl-tab-bar/index.vue'
import CardPicture from '~/components/kl-card-picture/index.vue'
import { recommendTop } from '~/api/home/index'
import type { ProjectDrawPageRespVO } from '~/api/home/type'
const query = reactive({
type: 1,
@ -55,11 +55,11 @@
const handleClick = () => {
if (query.type === 1) {
window.open('/drawe', '_blank')
navigateTo('/drawe')
} else if (query.type === 2) {
window.open('/text', '_blank')
navigateTo('/text')
} else {
window.open('/model', '_blank')
navigateTo('/model')
}
}