liwei 1 year ago
parent
commit
a8a7370e34
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/modules/resource/index.ts

+ 2 - 2
src/modules/resource/index.ts

@@ -76,11 +76,11 @@ export class ResourceModule extends ModuleRoot {
 
     this.controls.sysImageListCtrl.setCrudPrefix("/sys/source");
     this.controls.sysImageListCtrl.state.size = 20;
-    this.controls.sysImageListCtrl.state.query = { fileType: "image" , isSvg: {$ne: true}};
+    this.controls.sysImageListCtrl.state.query = { fileType: "image" , isSvg: {$ne: true}, published: true};
 
     this.controls.sysVideoListCtrl.setCrudPrefix("/sys/source");
     this.controls.sysVideoListCtrl.state.size = 20;
-    this.controls.sysVideoListCtrl.state.query = { fileType: "video" };
+    this.controls.sysVideoListCtrl.state.query = { fileType: "video" , published: true};
 
     this.controls.sysSvgListCtrl.setCrudPrefix("/sys/source");
     this.controls.sysSvgListCtrl.state.size = 20;