From f41874765a75f209c5d615f0d461ce48f92f2700 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 7 Oct 2023 22:54:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=A8=E5=B1=80=EF=BC=9A=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E9=83=A8=E5=88=86=E6=8E=A5=E5=8F=A3=E5=BC=BA=E5=88=B6=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/product/category.js | 4 +++- api/promotion/coupon.js | 8 ++++++-- api/trade/brokerage.js | 2 ++ utils/request.js | 1 + 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/api/product/category.js b/api/product/category.js index 1b405f6b..ac843da4 100644 --- a/api/product/category.js +++ b/api/product/category.js @@ -2,5 +2,7 @@ import request from "@/utils/request.js"; // 查询分类列表 export function getCategoryList() { - return request.get('app-api/product/category/list', {}); + return request.get('app-api/product/category/list', {}, { + noAuth: true // TODO 芋艿:后续要做调整 + }); } diff --git a/api/promotion/coupon.js b/api/promotion/coupon.js index fc97a375..4995b62a 100644 --- a/api/promotion/coupon.js +++ b/api/promotion/coupon.js @@ -19,12 +19,16 @@ export function getCouponPage(data) { // 获得优惠劵模板分页 export function getCouponTemplatePage(data) { - return request.get("app-api/promotion/coupon-template/page", data); + return request.get("app-api/promotion/coupon-template/page", data, { + noAuth: true // TODO 芋艿:后续要做调整 + }); } // 获得优惠劵模板列表 export function getCouponTemplateList(data) { - return request.get("app-api/promotion/coupon-template/list", data); + return request.get("app-api/promotion/coupon-template/list", data, { + noAuth: true // TODO 芋艿:后续要做调整 + }); } // 获得未使用的优惠劵数量 diff --git a/api/trade/brokerage.js b/api/trade/brokerage.js index 40114775..a650efee 100644 --- a/api/trade/brokerage.js +++ b/api/trade/brokerage.js @@ -56,5 +56,7 @@ export function getBrokerageRecordPage(data) { export function getProductBrokeragePrice(spuId) { return request.get('app-api/trade/brokerage-record/get-product-brokerage-price', { spuId + }, { + noAuth: true // TODO 芋艿:后续要做调整 }); } diff --git a/utils/request.js b/utils/request.js index 57a26767..70e76634 100644 --- a/utils/request.js +++ b/utils/request.js @@ -37,6 +37,7 @@ function baseRequest(url, method, data, { if (!noAuth) { //登录过期自动登录 if (!store.state.app.token && !checkLogin()) { + // debugger toLogin(); return Promise.reject({ msg: '未登录'