egg-born-module-a-base-sync
Advanced tools
Comparing version 4.8.55 to 4.8.56
@@ -10,7 +10,13 @@ export default { | ||
} | ||
// confirm | ||
// key | ||
const key = { atomId: item.atomId, itemId: item.itemId }; | ||
// step one: write | ||
const options = { | ||
saveDraftOnly: false, | ||
}; | ||
await ctx.$api.post('/a/base/atom/write', { key, item, options }); | ||
// step middle: confirm | ||
await ctx.$view.dialog.confirm(this.$text('AtomActionSubmitConfirm')); | ||
// submit | ||
const key = { atomId: item.atomId, itemId: item.itemId }; | ||
const data = await ctx.$api.post('/a/base/atom/writeSubmit', { key, item }); | ||
// step two: submit | ||
const data = await ctx.$api.post('/a/base/atom/submit', { key }); | ||
if (data.formal) { | ||
@@ -17,0 +23,0 @@ // delete draft |
{ | ||
"name": "egg-born-module-a-base-sync", | ||
"version": "4.8.55", | ||
"version": "4.8.56", | ||
"title": "Base", | ||
@@ -5,0 +5,0 @@ "eggBornModule": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
3730442
61538