feat: 增加同步规则

This commit is contained in:
GaoHao
2025-04-11 14:57:26 +08:00
parent 04ae1c342b
commit 8fd3565bac
3 changed files with 26 additions and 7 deletions

View File

@@ -116,4 +116,16 @@ export function downloadFile(obj: BlobPart, name: string, suffix: string, useUni
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
}
}
/**
* 判断主店同步是否启用
*/
export function isSyncStatus() {
let userInfo = ref(JSON.parse(localStorage.getItem('userInfo') || '{}'))
if (userInfo.value.isHeadShop == 0 && userInfo.value.isEnableProdSync == 1 && userInfo.value.isEnableVipSync == 1 && userInfo.value.isEnableConsSync == 1) {
return true
}else {
return false
}
}