Explorar o código

返回删除superSearch_iosNoRefresh缓存

tsz %!s(int64=3) %!d(string=hai) anos
pai
achega
58838c6bd3

+ 3 - 0
src/jfw/modules/app/src/web/staticres/jyapp/js/searchindex.js

@@ -63,9 +63,12 @@ $(function () {
         var isPageHide = false;
         window.addEventListener('pageshow', function () {
             if (isPageHide) {
+              // ios从三级页返回不刷新页面
               const superSearch_iosNoRefresh = sessionStorage.getItem('superSearch_iosNoRefresh')
               if(!superSearch_iosNoRefresh) {
                 location.reload();
+              } else {
+                sessionStorage.removeItem('superSearch_iosNoRefresh')
               }
             }
         });

+ 3 - 0
src/web/staticres/common-module/public/js/utils.js

@@ -318,9 +318,12 @@ var utils = {
         var isPageHide = false;
         window.addEventListener('pageshow', function () {
             if (isPageHide) {
+              // ios从三级页返回不刷新页面
               const superSearch_iosNoRefresh = sessionStorage.getItem('superSearch_iosNoRefresh')
               if(!superSearch_iosNoRefresh) {
                 location.reload();
+              } else {
+                sessionStorage.removeItem('superSearch_iosNoRefresh')
               }
             }
         });