<script>
  let url = window.location.href;
  if (url.indexOf('https') < 0) {
    url = url.replace('http:', 'https:');
    window.location.replace(url);
  }
</script>

本地开发的时候请注释掉以上代码

相关文章:

  • 2021-07-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-13
  • 2021-12-24
  • 2022-01-31
  • 2022-12-23
猜你喜欢
  • 2021-08-23
  • 2022-12-23
  • 2021-06-18
  • 2022-12-23
  • 2021-11-21
  • 2021-12-13
  • 2021-05-27
相关资源
相似解决方案