瀏覽代碼

refactor(): refactoring PR #7124

Torkel Ödegaard 9 年之前
父節點
當前提交
5fc5971145
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      public/app/features/dashboard/time_srv.ts

+ 5 - 0
public/app/features/dashboard/time_srv.ts

@@ -114,6 +114,11 @@ class TimeSrv {
     } else {
       this.cancelNextRefresh();
     }
+
+    // update url
+    var params = this.$location.search();
+    params.refresh = interval;
+    this.$location.search(params);
   }
 
   refreshDashboard() {