|
@@ -236,6 +236,9 @@ import ImageResize from 'quill-image-resize-module';
|
|
import Quill from 'quill'; // 引入 Quill
|
|
import Quill from 'quill'; // 引入 Quill
|
|
import Delta from 'quill-delta'; // 引入 Delta,用于手动修改文档
|
|
import Delta from 'quill-delta'; // 引入 Delta,用于手动修改文档
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
// 注册 Image Resize 模块
|
|
// 注册 Image Resize 模块
|
|
Quill.register('modules/imageResize', ImageResize);
|
|
Quill.register('modules/imageResize', ImageResize);
|
|
|
|
|
|
@@ -688,9 +691,15 @@ export default {
|
|
|
|
|
|
//2.跳转操作 start ------------------------------------------------------------>
|
|
//2.跳转操作 start ------------------------------------------------------------>
|
|
returnPage() {
|
|
returnPage() {
|
|
- this.$router.push({
|
|
|
|
- path: '/articleList',
|
|
|
|
- });
|
|
|
|
|
|
+ if(this.$route.query.to=="examine"){
|
|
|
|
+ this.$router.push({
|
|
|
|
+ path: '/examine',
|
|
|
|
+ });
|
|
|
|
+ }else{
|
|
|
|
+ this.$router.push({
|
|
|
|
+ path: '/articleList',
|
|
|
|
+ });
|
|
|
|
+ }
|
|
},
|
|
},
|
|
//跳转操作 end ------------------------------------------------------------>
|
|
//跳转操作 end ------------------------------------------------------------>
|
|
|
|
|
|
@@ -835,8 +844,13 @@ export default {
|
|
|
|
|
|
//判断用户身份
|
|
//判断用户身份
|
|
if(this.creatNews_user_type==10000){
|
|
if(this.creatNews_user_type==10000){
|
|
- console.log("用户身份为管理员,无需审核直接发布!")
|
|
|
|
- this.form.status = 1;
|
|
|
|
|
|
+ if(this.$route.query.to=="examine"){
|
|
|
|
+ //如果是管理员在编辑用户的新闻这里的status需要设置为0
|
|
|
|
+ this.form.status = 0;
|
|
|
|
+ }else{
|
|
|
|
+ console.log("用户身份为管理员,无需审核直接发布!")
|
|
|
|
+ this.form.status = 1;
|
|
|
|
+ }
|
|
}else{
|
|
}else{
|
|
console.log("用户身份为其他用户,提交到审核!")
|
|
console.log("用户身份为其他用户,提交到审核!")
|
|
this.form.status = 0;
|
|
this.form.status = 0;
|