mirror of
https://gitee.com/ShopeX/ECShopX_mobile-frontend
synced 2026-08-11 22:15:32 +08:00
bug(custom): cookie
This commit is contained in:
@@ -128,3 +128,11 @@ export function checkStoreEnterRule(params) {
|
||||
export function getMyStoreWhiteList() {
|
||||
return req.get('/distributor/whitelistByMember')
|
||||
}
|
||||
|
||||
|
||||
// 获取Cookie政策
|
||||
export function getCookiePolicy() {
|
||||
return req.get('/shops/protocol', {
|
||||
type: 'cookie_privacy'
|
||||
})
|
||||
}
|
||||
@@ -22,9 +22,7 @@ const CookieConsent = () => {
|
||||
|
||||
const fetchCookiePolicy = async () => {
|
||||
try {
|
||||
const { content } = await api.shop.getRuleInfo({
|
||||
type: 'cookie_privacy'
|
||||
})
|
||||
const { content } = await api.shop.getCookiePolicy()
|
||||
if (content) {
|
||||
setPolicyData(content)
|
||||
setVisible(true)
|
||||
|
||||
Reference in New Issue
Block a user