fix: 🧩 修复bug

This commit is contained in:
2025-04-18 17:48:33 +08:00
parent 3d9a5f399e
commit b020976ace
2 changed files with 14 additions and 4 deletions

View File

@@ -216,6 +216,9 @@ const getBannerRead = async (id: any) => {
setImgOrVideo();
if (dataStore.editRuleForm.link && dataStore.editRuleForm.link_to) {
let { id, name, link } = dataStore.editRuleForm.link_echo_data;
if (!id || !name || !link) {
return;
}
let obj: any = {
label: name, // 确保这里的name是你想要显示的文本
value: `${dataStore.editRuleForm.link_to}` + "/" + `${id}` + "/" + `${name}`,