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: '未登录'