Refactor API requests and update component imports
This commit is contained in:
@ -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')
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user