fix
This commit is contained in:
parent
8ebf2cab6a
commit
4a67a7c8cf
@ -23,7 +23,7 @@ onBeforeUnmount(() => {
|
||||
const getVideoId = () => {
|
||||
try {
|
||||
const url = new URL(props.src);
|
||||
console.log(url,'urlurlurl');
|
||||
// console.log(url,'urlurlurl');
|
||||
return url.searchParams.get("v") || "";
|
||||
} catch (error) {
|
||||
return "";
|
||||
|
@ -122,7 +122,7 @@ const weapoName = reactive([
|
||||
|
||||
const setWeaponThumbsSwiper = (swiper) => {
|
||||
weaponThumbsSwiper.value = swiper;
|
||||
console.log("setWeaponThumbsSwiper ", swiper);
|
||||
// console.log("setWeaponThumbsSwiper ", swiper);
|
||||
// swiper.on('slideChange', function() {
|
||||
// console.log('slide changed', swiper);
|
||||
// activeIndex.value = swiper.activeIndex;
|
||||
@ -131,9 +131,9 @@ const setWeaponThumbsSwiper = (swiper) => {
|
||||
|
||||
const setWeaponSwiper = (swiper) => {
|
||||
weaponSwiper.value = swiper;
|
||||
console.log("slide changed", swiper);
|
||||
// console.log("slide changed", swiper);
|
||||
swiper.on("slideChange", function () {
|
||||
console.log("slide changed weapon", swiper);
|
||||
// console.log("slide changed weapon", swiper);
|
||||
activeIndex.value = weaponSwiper.value.activeIndex;
|
||||
});
|
||||
};
|
||||
|
@ -101,13 +101,13 @@ async function login(event) {
|
||||
if (!chain.logined) {
|
||||
// 没有登录情况下执行登录
|
||||
await chain.chainManager.login();
|
||||
console.log("logined:", chain.chainManager.isLogined);
|
||||
// console.log("logined:", chain.chainManager.isLogined);
|
||||
chain.logined = chain.chainManager.isLogined;
|
||||
}
|
||||
}
|
||||
const logout = async () => {
|
||||
await chain.chainManager.logout();
|
||||
console.log("logined:", chain.chainManager.isLogined);
|
||||
// console.log("logined:", chain.chainManager.isLogined);
|
||||
chain.logined = chain.chainManager.isLogined;
|
||||
};
|
||||
const avatarUrl = ref("https://example.com/avatar.jpg");
|
||||
@ -224,7 +224,7 @@ watchEffect(() => {
|
||||
|
||||
}
|
||||
.link-label{
|
||||
font-size: 15px;
|
||||
font-size: 16px;
|
||||
font-family: Arial;
|
||||
font-weight: 400;
|
||||
color: #ffffff;
|
||||
|
@ -52,7 +52,8 @@ router.beforeEach((to, from, next) => {
|
||||
if (!isMobile) {
|
||||
next(); // 如果是 PC 设备,继续导航
|
||||
} else {
|
||||
window.location.href = 'https://your-mobile-site-url.com'; // 如果是移动设备,跳转到移动端官网
|
||||
window.location.href = 'https://mobile.cebg.gemes';
|
||||
window.location.href = 'https://desktop.cebg.gemes';
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -27,9 +27,9 @@ export const useAppStore = defineStore('app', () => {
|
||||
}
|
||||
|
||||
function updateAccount(_accountId) {
|
||||
console.log("updateAccount start", accountId, _accountId);
|
||||
|
||||
accountId.value = _accountId;
|
||||
console.log("updateAccount end", accountId, _accountId);
|
||||
|
||||
}
|
||||
function updateChainID(_chainId) {
|
||||
chainId.value = _chainId;
|
||||
|
@ -6,7 +6,7 @@ export const useChainStore = defineStore('chain', ()=> {
|
||||
const logined = ref(false);
|
||||
const chainManager = ref(new ChainManager());
|
||||
chainManager.value.init().then(()=> {
|
||||
console.log("chain init:", {chainManager})
|
||||
// console.log("chain init:", {chainManager})
|
||||
|
||||
logined.value = chainManager.value.isLogined;
|
||||
});
|
||||
|
@ -63,12 +63,12 @@ export const useUserStore = defineStore("user", () => {
|
||||
tips,
|
||||
net_id: chainId,
|
||||
};
|
||||
console.log("login data: ", authData);
|
||||
|
||||
const res = await login(authData);
|
||||
if (!res.errcode && res.token) {
|
||||
accountId.value = account;
|
||||
setToken(res.token);
|
||||
console.log(res, "resres");
|
||||
|
||||
setAccountId(account);
|
||||
AppModule.updateAccount(account);
|
||||
AppModule.updateToken(res.token);
|
||||
|
@ -3,7 +3,7 @@ import { message } from 'ant-design-vue'
|
||||
|
||||
import glodata from '@/store/user_global';
|
||||
|
||||
console.log(import.meta.env);
|
||||
// console.log(import.meta.env);
|
||||
|
||||
const service = axios.create({
|
||||
baseURL: import.meta.env.VUE_APP_BASE_API,
|
||||
|
Loading…
x
Reference in New Issue
Block a user