|
|
@@ -581,6 +581,9 @@ export default {
|
|
|
.then((res) => {
|
|
|
this.loading = false;
|
|
|
if (res.status === 1) {
|
|
|
+ if (!this.id && !this.articleId) {
|
|
|
+ this.articleId = res.data.art.id;
|
|
|
+ }
|
|
|
if (flag) {
|
|
|
this.articleId = res.data.art.id;
|
|
|
if (res.data.vl) {
|
|
|
@@ -949,7 +952,7 @@ export default {
|
|
|
},
|
|
|
// 预览文章
|
|
|
handlePreviewArt() {
|
|
|
- if (!this.id && !this.issueId) {
|
|
|
+ if (!this.id && !this.articleId) {
|
|
|
this.handleSaveArticle("articleForm", "preview");
|
|
|
} else {
|
|
|
this.previewArticle = true;
|