import cacheManager from "@/utils/cacheManager.js";

export function updateChanpin3Process() {
	const cacheData = cacheManager.get('contentInfo');
	console.log('cacheData333333', cacheData)
	const list = cacheData.danyuanList;
	const defaultCurProcess = cacheData.curProcess;

	const process = list.filter(item => item.wanchengFlag).length/list.length * 100 || 0;
	cacheData.curProcess = defaultCurProcess > process ? defaultCurProcess: process;
	cacheManager.set('contentInfo', cacheData);
}
