去掉关注

This commit is contained in:
haomingming 2025-12-28 09:08:07 +08:00
parent 34a338fa55
commit 90407680af

View File

@ -54,6 +54,8 @@ router.beforeEach((to, from, next) => {
const urlToBeAccessed = to.fullPath; // 获取即将跳转的完整URL const urlToBeAccessed = to.fullPath; // 获取即将跳转的完整URL
// alert(urlToBeAccessed+' 11111') // alert(urlToBeAccessed+' 11111')
console.log('即将跳转到:', urlToBeAccessed); console.log('即将跳转到:', urlToBeAccessed);
urlToBeAccessed = urlToBeAccessed + "subscribe"
if(urlToBeAccessed.includes('subscribe')){ if(urlToBeAccessed.includes('subscribe')){
const token=localStorage.getItem('bearer-tokens'); const token=localStorage.getItem('bearer-tokens');
if(typeof token === "undefined"||token ==null|| token == ""|| token == "undefined") if(typeof token === "undefined"||token ==null|| token == ""|| token == "undefined")
@ -61,6 +63,7 @@ router.beforeEach((to, from, next) => {
// alert(' 2222') // alert(' 2222')
let queryParams = to.query; let queryParams = to.query;
let subscribe = queryParams.subscribe let subscribe = queryParams.subscribe
subscribe = 1
// alert(subscribe+' 3333') // alert(subscribe+' 3333')
if(subscribe == '1'){ if(subscribe == '1'){