diff --git a/plugins/api/comment.js b/plugins/api/comment.js index f34f5cc..0c161ce 100644 --- a/plugins/api/comment.js +++ b/plugins/api/comment.js @@ -2,7 +2,7 @@ * @Author: ch * @Date: 2022-06-20 11:38:48 * @LastEditors: ch - * @LastEditTime: 2022-06-29 16:03:36 + * @LastEditTime: 2022-06-29 17:45:28 * @Description: file content */ @@ -19,8 +19,8 @@ const BASE_URL = `${ENV.base_url}/mall/comment`; */ export const ApiGetCommentList = (params) => ToAsyncAwait(axiosTk.get(`${BASE_URL}/app/comment`, { - params: { - ...params, + params, + headers: { notVerifyToken : true } })); @@ -31,7 +31,7 @@ export const ApiGetCommentList = (params) => */ export const ApiGetCommentCount = ({productId}) => ToAsyncAwait(axiosTk.get(`${BASE_URL}/app/comment/getAllCommentCountByProductId/${productId}`,{ - params: { + headers: { notVerifyToken : true } })); @@ -59,7 +59,7 @@ export const ApiGetProductSatisfaction = ({productId}) => */ export const ApiGetCommentDetail = ({commentId}) => ToAsyncAwait(axiosTk.get(`${BASE_URL}/app/comment/getCommentDetail/${commentId}`, { - params: { + headers: { notVerifyToken : true } }));