From ddc982a35da2b36d2c7f7f749cabb3bc5d388004 Mon Sep 17 00:00:00 2001 From: ch Date: Wed, 29 Jun 2022 17:46:22 +0800 Subject: [PATCH] token --- plugins/api/comment.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 } }));