bug(custom): cookie

This commit is contained in:
zhangjing1
2025-11-25 11:29:13 +08:00
parent e5f034a475
commit 373bb777f2
2 changed files with 9 additions and 3 deletions

View File

@@ -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'
})
}

View File

@@ -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)