足迹收藏报错

This commit is contained in:
xuwenbo
2020-09-03 14:39:43 +08:00
parent ff9668870b
commit ae204bf1bd
2 changed files with 3 additions and 1 deletions

View File

@ -116,6 +116,7 @@ export default {
methods: {
// 获取数据前设置好接口地址
[CRUD.HOOK.beforeRefresh]() {
const query = this.query
this.crud.params[query.type] = 'collect'
return true
}, // 新增与编辑前做的操作

View File

@ -4,7 +4,7 @@
<div class="head-container">
<!--如果想在工具栏加入更多按钮可以使用插槽方式 slot = 'left' or 'right'-->
<!--表单组件-->
<el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="500px">
<el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :title="crud.status.title" width="500px">
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="80px">
<el-form-item label="id">
<el-input v-model="form.id" style="width: 370px;" />
@ -116,6 +116,7 @@ export default {
methods: {
// 获取数据前设置好接口地址
[CRUD.HOOK.beforeRefresh]() {
const query = this.query
this.crud.params[query.type] = 'foot'
return true
}, // 新增与编辑前做的操作