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

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