From 838f64b06b6f4f07c65c7a5d010d1654f90746fd Mon Sep 17 00:00:00 2001
From: click33 <2393584716@qq.com>
Date: Fri, 28 Oct 2022 21:22:27 +0800
Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E6=97=A0=E5=85=B3=E4=BB=A3?=
=?UTF-8?q?=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
sa-token-doc/index.html | 41 +----------------------------------------
1 file changed, 1 insertion(+), 40 deletions(-)
diff --git a/sa-token-doc/index.html b/sa-token-doc/index.html
index 680ea9ed..5306a668 100644
--- a/sa-token-doc/index.html
+++ b/sa-token-doc/index.html
@@ -534,7 +534,7 @@
@@ -613,45 +613,6 @@
});
})
- // set 一下 img 的宽度
- function setImgWidth(img) {
- // 如果已经有了宽度参数,则不追加
- if(img.src.indexOf('?') > -1) {
- return;
- }
- // console.log(img.getAttribute('nf'));
- if(img.getAttribute('nf') != null) {
- return;
- }
- // 如果不是oss上的图片
- if(img.src.indexOf('https://oss.dev33.cn') == -1 || img.src.endsWith('.svg')) {
- return;
- }
- img.src = img.src + "?x-oss-process=image/resize,m_lfit,w_" + (img.width) + ",limit_0/auto-orient,0";
- }
-
- // set 一遍 img 的尺寸,防止失真
- function f5ImgSize() {
- $('.com-box-f .com-box a img').each(function() {
- // console.log(this.src, this.width);
- // 未加载完毕时,则等待其load之后再设置
- if(this.complete == false) {
- this.onload = function() {
- setImgWidth(this);
- }
- return;
- }
- // 追加宽度参数
- setImgWidth(this);
- })
- }
- if(window.innerWidth > 1800) {
- if(navigator.userAgent.indexOf('WebKit') > -1) {
- // f5ImgSize();
- }
- }
-
-