|
@@ -84,15 +84,13 @@ Vue.prototype.$msg.error = (string)=>{
|
|
|
});
|
|
|
}
|
|
|
|
|
|
-Vue.prototype.$videoImg =
|
|
|
- "?x-oss-process=video/snapshot,t_0,f_jpg,w_0,h_0,m_fast,ar_auto";
|
|
|
-
|
|
|
+Vue.prototype.$videoImg = "?x-oss-process=video/snapshot,t_0,f_jpg,w_0,h_0,m_fast,ar_auto";
|
|
|
|
|
|
-Vue.prototype.$imgsuffix =
|
|
|
-process.env.VUE_APP_ORIGIN=='aws'?encodeURIComponent('?x-oss-process=image@resize,m_lfit,w_200@crop,w_200,h_200'.replaceAll('/','@'))
|
|
|
-:`?x-oss-process=image/resize,p_20&${Math.random()}`;
|
|
|
+Vue.prototype.$imgsuffix = '?x-oss-process=image/resize,m_lfit,w_200/crop,w_200,h_200'
|
|
|
|
|
|
-console.log(process.env.VUE_APP_ORIGIN);
|
|
|
+Vue.prototype.$getImgResizeSuffix = function(width, height) {
|
|
|
+ return `?x-oss-process=image/resize,m_lfit,w_${width},h_${height},limit_0`;
|
|
|
+}
|
|
|
|
|
|
Vue.prototype.$scrollbars = [];
|
|
|
|