Browse Source

调整缓存下刷新页面左侧菜单选中问题

笔下光年 4 years ago
parent
commit
d69adc4351
1 changed files with 6 additions and 1 deletions
  1. 6 1
      js/bootstrap-multitabs/multitabs.js

+ 6 - 1
js/bootstrap-multitabs/multitabs.js

@@ -653,12 +653,17 @@ if (typeof jQuery === "undefined") {
                 $el = self.$element,
                 options = self.options,
                 storage, init = options.init,
-                param;
+                param,
+                tempParam;
             if (supportStorage(options.cache)) {
                 storage = self._storage();
                 self._resetStorage({});
                 $.each(storage, function (k, v) {
                     self.create(v, false);
+                    if (v.active) {
+                        tempParam = self._getParam(v);
+                        self._exist(tempParam).click();
+                    }
                 })
             }
             if ($.isEmptyObject(storage)) {