Commit 9aee35cb by cocomilk2012

123

parent 544fb891
Showing with 1 additions and 1 deletions
...@@ -98,7 +98,7 @@ function getPathByTo(to, authcode_key) { ...@@ -98,7 +98,7 @@ function getPathByTo(to, authcode_key) {
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
console.log('开始路由'); console.log('开始路由');
console.log('to.fullpath=', to.fullPath);
if (isOpenHttps === 'true' && location.href.startsWith('http://')) { if (isOpenHttps === 'true' && location.href.startsWith('http://')) {
location.href = location.href.replace('http://', 'https://'); location.href = location.href.replace('http://', 'https://');
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment