qq_35678952 2018-07-23 06:51 采纳率: 0%
浏览 1361
已结题

配置https域名之后出现 二级页面请求url错误问题?

图片说明
遇到同样的问题?有没有大神遇到过怎么解决的?求支招

  • 写回答

4条回答 默认 最新

  • chenbo_rb 2018-08-24 03:03
    关注

    Dialog框架只对http,/,javascript:的请求是直接返回传入的URL地址,否则会拼接window.location.href地址,可以修改
    this.URL.substr(0, 7) == "http://" || this.URL.substr(0, 8) == "https://" || this.URL.substr(0, 1) == "/" || this.URL.substr(0, 11) == "javascript:"
    Dialog.prototype.displacePath = function () {
    if (this.URL.substr(0, 7) == "http://" || this.URL.substr(0, 1) == "/" || this.URL.substr(0, 11) == "javascript:") {
    return this.URL;
    } else {
    var thisPath = this.URL;
    var locationPath = window.location.href;
    locationPath = locationPath.substring(0, locationPath.lastIndexOf('/'));
    while (thisPath.indexOf('../') >= 0) {
    thisPath = thisPath.substring(3);
    locationPath = locationPath.substring(0, locationPath.lastIndexOf('/'));
    }
    return locationPath + '/' + thisPath;
    }
    };

    评论

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?