未登录时详情页不请求收藏接口

This commit is contained in:
yangjian
2025-02-17 09:25:09 +08:00
parent 1dc7d31380
commit 7f806c7f55

View File

@@ -474,6 +474,9 @@ const isCollection = ref(false)
* 获取是否关注信息
*/
const getCollection = () => {
if (!uni.getStorageSync('Token')) {
return
}
uni.showLoading()
http.request({
url: '/p/user/collection/isCollection',