|
@@ -13,7 +13,12 @@ export const collectionAction = ResourceModule.action({
|
|
|
|
|
|
async createOrUpdateCollection(record: any) {
|
|
async createOrUpdateCollection(record: any) {
|
|
const data = await this.showModal(
|
|
const data = await this.showModal(
|
|
- <this.components.CollectionEditModal record={record} />
|
|
|
|
|
|
+ <this.components.CollectionEditModal record={record} />,
|
|
|
|
+ {
|
|
|
|
+ width: "500px",
|
|
|
|
+ maskClosable: false,
|
|
|
|
+ title: record && record._id ? "编辑作品集" : "新增作品集",
|
|
|
|
+ }
|
|
);
|
|
);
|
|
if (record && record._id) {
|
|
if (record && record._id) {
|
|
await this.https.updateCollection(data);
|
|
await this.https.updateCollection(data);
|