组件按需加载
This commit is contained in:
@@ -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,
|
||||
}
|
||||
Reference in New Issue
Block a user