wangzhibo
2021-09-28 c56e0a77b1f9dd732b785a6d8aed2e09da4ac257
get userid moved to index.js
2个文件已修改
10 ■■■■■ 已修改文件
js/index.js 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
widgetsTS/dataTime/widget.js 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
js/index.js
@@ -18,6 +18,8 @@
    request = $.extend(request, haoutil.system.getRequest(window.top));
  }
  mars3d.global_variables.userid = request?.userid || 2;
  var configfile = "config/config.json"; //默认地址
  if (request.config) {
    //url传入地址
widgetsTS/dataTime/widget.js
@@ -54,13 +54,7 @@
    create() {
      this.defaultDate = getDefaultDateLocal();
      this.defaultDateTime = getDefaultDateTimeLocal();
      // 初始化 参数
      let request = haoutil.system.getRequest();
      if (window.top) {
        request = $.extend(request, haoutil.system.getRequest(window.top));
      }
      mars3d.global_variables.userid = request?.userid || 2;
    }
    //每个窗口创建完成后调用