Refactor API requests and update component imports
This commit is contained in:
@ -13,15 +13,15 @@
|
||||
</div>
|
||||
<div class="mt-19px flex items-center justify-between">
|
||||
<div class="flex items-center">
|
||||
<img src="@/assets/images/look.png" alt="" srcset="" class="mr-4px h-17px" />
|
||||
<img src="~/assets/images/look.png" alt="" srcset="" class="mr-4px h-17px" />
|
||||
<span class="text-[#666666]">{{ channelDetail?.likeNum || 0 }}人赞过</span>
|
||||
<div class="ml-16px flex items-center">
|
||||
<img src="@/assets/images/add.png" alt="" class="mr-4px h-23px" />
|
||||
<img src="~/assets/images/add.png" alt="" class="mr-4px h-23px" />
|
||||
<span class="text-[#666666]">{{ channelDetail?.commentNum || 0 }}评论</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ml-16px flex items-center">
|
||||
<img src="@/assets/images/chat.png" alt="" srcset="" class="mr-4px h-17px" />
|
||||
<img src="~/assets/images/chat.png" alt="" srcset="" class="mr-4px h-17px" />
|
||||
<span class="text-[#666666]">{{ channelDetail?.browseNum || 0 }}人看过</span>
|
||||
</div>
|
||||
</div>
|
||||
@ -66,7 +66,7 @@
|
||||
</div>
|
||||
<div class="right ml-23px w-100%">
|
||||
<div class="mt-20px w-398px border border-[#EEEEEE] border-rd-[10px_10px_0px_0px] border-solid bg-[#FFFFFF]">
|
||||
<img src="@/assets/images/sign.png" alt="" srcset="" class="h-206px w-100%" />
|
||||
<img src="~/assets/images/sign.png" alt="" srcset="" class="h-206px w-100%" />
|
||||
<div class="box-border border border-[#EEEEEE] border-rd-[10px_10px_0px_0px] border-solid border-t-none bg-[#FFFFFF] pa-18px">
|
||||
<div class="mt-10px flex items-center">
|
||||
<div class="text-18px text-[#333333] font-bold">王琦</div>
|
||||
@ -96,10 +96,10 @@
|
||||
<script setup lang="ts">
|
||||
import dayjs from 'dayjs'
|
||||
import { watch, ref, reactive } from 'vue'
|
||||
import KlNavTab from '@/components/kl-nav-tab/index.vue'
|
||||
import KlNavTab from '~/components/kl-nav-tab/index.vue'
|
||||
import { useRoute } from 'vue-router'
|
||||
import { getChannelDetail, postscommentpage, createPostsComment } from '@/api/channel'
|
||||
import type { TGetChannelPostsRes, PageResultPostsCommentRespVO } from '@/api/channel/types'
|
||||
import { getChannelDetail, postscommentpage, createPostsComment } from '~/api/channel'
|
||||
import type { TGetChannelPostsRes, PageResultPostsCommentRespVO } from '~/api/channel/types'
|
||||
const route = useRoute()
|
||||
const channelId = route.query.channelId as string
|
||||
|
||||
|
||||
Reference in New Issue
Block a user