|
@@ -669,6 +669,15 @@ export default {
|
|
}
|
|
}
|
|
this.isAdmin = this.userInfo ? this.userInfo.roleInfo.is_admin : 2;
|
|
this.isAdmin = this.userInfo ? this.userInfo.roleInfo.is_admin : 2;
|
|
this.initArticleCategoryList();
|
|
this.initArticleCategoryList();
|
|
|
|
+ if (this.type == "document" && this.articleId!==undefined) {
|
|
|
|
+ document.title = this.docAttr.title+"-轻良实业";
|
|
|
|
+ }
|
|
|
|
+ if (this.type !== "module" && this.type !== "document") {
|
|
|
|
+ document.title = "新建模版-轻良实业";
|
|
|
|
+ }
|
|
|
|
+ if (this.type !== "module" && this.type !== "document" &&this.articleId!==undefined) {
|
|
|
|
+ document.title = this.docAttr.title+"-轻良实业";
|
|
|
|
+ }
|
|
},
|
|
},
|
|
|
|
|
|
methods: {
|
|
methods: {
|
|
@@ -1345,10 +1354,10 @@ export default {
|
|
_this.$alert("增加组件");
|
|
_this.$alert("增加组件");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- if (_this.docAttr.category_id == "" || _this.docAttr.category_id <= 0) {
|
|
|
|
|
|
+ /* if (_this.docAttr.category_id == "" || _this.docAttr.category_id <= 0) {
|
|
_this.$alert("请选择分类");
|
|
_this.$alert("请选择分类");
|
|
return;
|
|
return;
|
|
- }
|
|
|
|
|
|
+ } */
|
|
if (_this.docAttr.title == "") {
|
|
if (_this.docAttr.title == "") {
|
|
_this.$alert("请填写模版标题");
|
|
_this.$alert("请填写模版标题");
|
|
return;
|
|
return;
|
|
@@ -1373,10 +1382,10 @@ export default {
|
|
_this.$alert("增加组件");
|
|
_this.$alert("增加组件");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- if (_this.docAttr.category_id == "" || _this.docAttr.category_id <= 0) {
|
|
|
|
|
|
+ /* if (_this.docAttr.category_id == "" || _this.docAttr.category_id <= 0) {
|
|
_this.$alert("请选择分类");
|
|
_this.$alert("请选择分类");
|
|
return;
|
|
return;
|
|
- }
|
|
|
|
|
|
+ } */
|
|
if (_this.docAttr.title == "") {
|
|
if (_this.docAttr.title == "") {
|
|
_this.$alert("请填写模版标题");
|
|
_this.$alert("请填写模版标题");
|
|
return;
|
|
return;
|