<script> let url = window.location.href; if (url.indexOf('https') < 0) { url = url.replace('http:', 'https:'); window.location.replace(url); } </script>
本地开发的时候请注释掉以上代码
<script> let url = window.location.href; if (url.indexOf('https') < 0) { url = url.replace('http:', 'https:'); window.location.replace(url); } </script>
本地开发的时候请注释掉以上代码