组件按需加载

This commit is contained in:
A1300399510
2023-07-13 17:34:25 +08:00
parent 348057a649
commit a626223e64
10 changed files with 97 additions and 110 deletions

View File

@@ -3,13 +3,21 @@ function setSeoTitle(title) {
}
function redirectToExternalWebsite(url) {
console.log(url, "url");
const link = document.createElement('a');
link.href = url;
link.target = '_blank';
// link.target = '_blank';
link.click();
}
// 跳转登录
function goTologin() {
let url = encodeURIComponent(location.href);
redirectToExternalWebsite(`https://passport.gter.net/?referer=${url}`);
}
module.exports = {
setSeoTitle,
redirectToExternalWebsite,
goTologin,
}