File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
src/renderer/main/files/modals/preview Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 11import angular from 'angular'
22
33import webModule from '@/app-module/web'
4+ import Duration from "@common/const/duration" ;
45
56const MEDIA_MODAL_CONTROLLER_NAME = 'mediaModalCtrl'
67
@@ -45,7 +46,7 @@ webModule
4546 }
4647
4748 function genURL ( ) {
48- selectedDomain . domain . signatureUrl ( objectInfo . path , qiniuClientOpt ) . then ( ( url ) => {
49+ selectedDomain . domain . signatureUrl ( objectInfo . path , 12 * Duration . Hour / Duration . Second , qiniuClientOpt ) . then ( ( url ) => {
4950 $scope . src_origin = url . toString ( ) ;
5051 $scope . src = $sce . trustAsResourceUrl ( url . toString ( ) ) ;
5152
Original file line number Diff line number Diff line change 11import angular from 'angular'
22
3+ import Duration from "@common/const/duration" ;
4+
35import webModule from '@/app-module/web'
46import { SIZE_FORMAT_FILTER_NAME } from "@/components/filters/formater" ;
57
@@ -52,7 +54,7 @@ webModule
5254 }
5355
5456 function getContent ( ) {
55- selectedDomain . domain . signatureUrl ( objectInfo . path , qiniuClientOpt ) . then ( ( url ) => {
57+ selectedDomain . domain . signatureUrl ( objectInfo . path , 12 * Duration . Hour / Duration . Second , qiniuClientOpt ) . then ( ( url ) => {
5658 $timeout ( ( ) => {
5759 $scope . imgsrc = url . toString ( ) ;
5860 } ) ;
You can’t perform that action at this time.
0 commit comments