feat: 销售统计分类筛选隐藏,商品同步优化

This commit is contained in:
GaoHao
2025-04-11 11:34:10 +08:00
parent 273684678b
commit 04ae1c342b
2 changed files with 7 additions and 4 deletions

View File

@@ -199,7 +199,9 @@ let datas = reactive({
remark: "",
images: []
});
if (JSON.parse(localStorage.getItem('userInfo') || '{}').isHeadShop == 0) {
let userInfo = ref(JSON.parse(localStorage.getItem('userInfo') || '{}'))
console.log(userInfo.value.isEnableProdSync)
if (userInfo.value.isHeadShop == 0 && userInfo.value.isEnableProdSync == 1) {
contentConfig.toolbar.splice(0, 1)
}else {
contentConfig.toolbar.splice(1, 1)