浏览代码

successful file update

ayHaru 4 年之前
父节点
当前提交
fe9a38fe24
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      admin/templates/default/provider.successful.php

+ 3 - 2
admin/templates/default/provider.successful.php

@@ -114,11 +114,12 @@
         // console.log('frontOneHour', frontOneHour,hour, stamp);
         let t = stamp + hour*3600
         let interval = $("select[name=interval]").val()
-        $.get( window.location.origin + "/plot/index?time_stamp=" + t + "&interval=" + interval, function (data){
+        let s = window.location.origin + "/plot/index?time_stamp=" + t + "&interval=" + interval
+        $.get( s, function (data){
             if (!data) {
                 return
             }
-            $('iframe').attr('src',src)
+            $('iframe').attr('src',s)
         });
 
         $('#timeSelect').change(function () {