全局:修复部分接口强制登录的问题

pull/5/head
YunaiV 2023-10-07 22:54:08 +08:00
parent 8d1cb7c4de
commit f41874765a
4 changed files with 12 additions and 3 deletions

View File

@ -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 芋艿:后续要做调整
});
}

View File

@ -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 芋艿:后续要做调整
});
}
// 获得未使用的优惠劵数量

View File

@ -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 芋艿:后续要做调整
});
}

View File

@ -37,6 +37,7 @@ function baseRequest(url, method, data, {
if (!noAuth) {
//登录过期自动登录
if (!store.state.app.token && !checkLogin()) {
// debugger
toLogin();
return Promise.reject({
msg: '未登录'