perf:页面数据调整优化

This commit is contained in:
郭永超 2025-09-02 17:51:46 +08:00
parent d7aaad4c91
commit be99b4942b
2 changed files with 34 additions and 1 deletions

View File

@ -200,6 +200,39 @@ const state = reactive({
rank: '1', rank: '1',
imageUrl: 'https://gov-cloud.oss-cn-chengdu.aliyuncs.com/frontend/chanye/44.jpg', imageUrl: 'https://gov-cloud.oss-cn-chengdu.aliyuncs.com/frontend/chanye/44.jpg',
}, },
{
title: '泡沫箱',
description: '通货 2.00元/个',
introduce:
'泡沫箱就是以泡沫塑料(多孔塑料)为材料制成的箱式包装容器,塑料泡沫是内部具有很多微小气孔的塑料。泡沫箱常被运用在水果的运输还有物品的封装。',
price: '2.00/个',
//
address: '临沧市耿马县孟定镇100号',
locationUrl: 'https://gov-cloud.oss-cn-chengdu.aliyuncs.com/frontend/chanye/dz.png',
//
contact: '罗青平',
type: '泡沫箱',
//
phone: '15658468468',
rank: '1',
imageUrl: 'https://gov-cloud.oss-cn-chengdu.aliyuncs.com/frontend/chanye/paomoxiang.jpg',
},
{
title: '冰瓶',
description: '通货 0.50元/个',
introduce: '工业领域延伸出塑料瓶装水冷冻后用于蔬菜运输保鲜的功能场景。',
price: '0.50/个',
//
address: '临沧市耿马县孟定镇100号',
locationUrl: 'https://gov-cloud.oss-cn-chengdu.aliyuncs.com/frontend/chanye/dz.png',
//
contact: '张友',
type: '冰瓶',
//
phone: '15658468468',
rank: '1',
imageUrl: 'https://gov-cloud.oss-cn-chengdu.aliyuncs.com/frontend/chanye/bingping.jpg',
},
], ],
}); });

View File

@ -62,7 +62,7 @@ const toLink = (item) => {
router.push(item.path); router.push(item.path);
} else { } else {
let obj = meuns.value.find((el) => el.name == item.name); let obj = meuns.value.find((el) => el.name == item.name);
console.log('obj', obj); // console.log('obj', obj);
menuStore.setMenuLabel(obj.label); menuStore.setMenuLabel(obj.label);
menuStore.setMenuPath(obj.path); menuStore.setMenuPath(obj.path);
router.push(obj.path); router.push(obj.path);