diff --git a/front-end/mall4uni/src/pages/prod/prod.vue b/front-end/mall4uni/src/pages/prod/prod.vue index 576998e..0edd7ca 100644 --- a/front-end/mall4uni/src/pages/prod/prod.vue +++ b/front-end/mall4uni/src/pages/prod/prod.vue @@ -474,6 +474,9 @@ const isCollection = ref(false) * 获取是否关注信息 */ const getCollection = () => { + if (!uni.getStorageSync('Token')) { + return + } uni.showLoading() http.request({ url: '/p/user/collection/isCollection',