修复食谱计划获取id错误

This commit is contained in:
huangdeliang
2021-03-08 18:51:40 +08:00
parent 9ccd7ab17c
commit bddc3c7f85
8 changed files with 135 additions and 24 deletions

View File

@ -19,7 +19,12 @@
@click="handleOnRecipesLinkClick"
>食谱链接
</el-button>
<el-popover placement="top" trigger="click" v-if="cusOutId" style="margin: 0 12px">
<el-popover
placement="top"
trigger="click"
v-if="cusOutId"
style="margin: 0 12px"
>
<VueQr :text="copyValue" :logoSrc="logo" size="256" />
<el-button
slot="reference"
@ -142,8 +147,8 @@ export default {
},
handleOnRecipesEditClick(data) {
// console.log(data);
const { id, name } = this.data;
window.open("/recipes/build/" + name + "/" + id, "_blank");
// const { id, name } = this.data;
window.open("/recipes/build/" + this.data.name + "/" + data.id, "_blank");
},
},
};