|
@@ -211,7 +211,7 @@ const toSave = async () => {
|
|
|
let res
|
|
|
if (get(data, 'id')) res = await store.update({ ...data, ...other })
|
|
|
else res = await store.create({ ...data, ...other })
|
|
|
- if ($checkRes(res, true)) {
|
|
|
+ if (res.errcode == 0) {
|
|
|
ElMessage({ message: `发布成功可以上历史发布查看`, type: 'success' })
|
|
|
key.value = form.value.name
|
|
|
await toClose()
|
|
@@ -226,7 +226,7 @@ const toDraftSave = async () => {
|
|
|
let res
|
|
|
if (get(data, 'id')) res = await store.update({ ...data, ...other })
|
|
|
else res = await store.create({ ...data, ...other })
|
|
|
- if ($checkRes(res, true)) {
|
|
|
+ if (res.errcode == 0) {
|
|
|
ElMessage({ message: `发布成功可以上历史发布查看`, type: 'success' })
|
|
|
key.value = form.value.name
|
|
|
await toClose()
|