解决插件列表动态表单上传异常

This commit is contained in:
icssoa 2021-03-07 16:38:34 +08:00
parent a4bbea31c5
commit 9a4bd66cb2

View File

@ -1,4 +1,5 @@
<template> <template>
<div>
<cl-crud ref="crud" :on-refresh="onRefresh" @load="onLoad"> <cl-crud ref="crud" :on-refresh="onRefresh" @load="onLoad">
<el-row type="flex" align="middle"> <el-row type="flex" align="middle">
<!-- 刷新按钮 --> <!-- 刷新按钮 -->
@ -32,6 +33,9 @@
<cl-pagination :props="{ layout: 'total' }" /> <cl-pagination :props="{ layout: 'total' }" />
</el-row> </el-row>
</cl-crud> </cl-crud>
<cl-form ref="form"></cl-form>
</div>
</template> </template>
<script> <script>
@ -189,7 +193,7 @@ export default {
}); });
}, },
async openConf(item) { async openConf(item) {
let form = await this.$service.plugin.info.getConfig({ const form = await this.$service.plugin.info.getConfig({
namespace: item.namespace namespace: item.namespace
}); });
@ -202,7 +206,7 @@ export default {
console.error(e); console.error(e);
} }
this.$crud.openForm({ this.$refs.form.open({
title: `${item.name}配置`, title: `${item.name}配置`,
items, items,
form, form,