This commit is contained in:
haomingming 2025-12-28 09:10:01 +08:00
parent 90407680af
commit 09e794b2ef

View File

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