全局:修复部分接口强制登录的问题
parent
8d1cb7c4de
commit
f41874765a
|
@ -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 芋艿:后续要做调整
|
||||
});
|
||||
}
|
||||
|
|
|
@ -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 芋艿:后续要做调整
|
||||
});
|
||||
}
|
||||
|
||||
// 获得未使用的优惠劵数量
|
||||
|
|
|
@ -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 芋艿:后续要做调整
|
||||
});
|
||||
}
|
||||
|
|
|
@ -37,6 +37,7 @@ function baseRequest(url, method, data, {
|
|||
if (!noAuth) {
|
||||
//登录过期自动登录
|
||||
if (!store.state.app.token && !checkLogin()) {
|
||||
// debugger
|
||||
toLogin();
|
||||
return Promise.reject({
|
||||
msg: '未登录'
|
||||
|
|
Loading…
Reference in New Issue