فهرست منبع

feat: 新增异常处理

zhangyuhan 4 سال پیش
والد
کامیت
c28cb55b65
1فایلهای تغییر یافته به همراه6 افزوده شده و 2 حذف شده
  1. 6 2
      src/web/staticres/common-module/keep-tags/keep-tags-template.js

+ 6 - 2
src/web/staticres/common-module/keep-tags/keep-tags-template.js

@@ -408,8 +408,12 @@ Vue.component('keep-component', {
                   id: id,
                   shoucang: type
                 }))
-                if (SuperSearch && typeof SuperSearch.setSessionStorage === 'function') {
-                  SuperSearch.setSessionStorage();
+                try {
+                  if (SuperSearch && typeof SuperSearch.setSessionStorage === 'function') {
+                    SuperSearch.setSessionStorage();
+                  }
+                } catch (e) {
+                  console.log('no list')
                 }
                 location.href = (utils.isWeiXinBrowser ? '/weixin' : '/jyapp') + '/frontPage/bigmember/free/perfect_info?origin=article_collection'
               }).catch(function () {});