fix
This commit is contained in:
parent
760774e495
commit
05c04fe7ce
BIN
dist-pc.rar
BIN
dist-pc.rar
Binary file not shown.
@ -1,15 +1,13 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="naber">
|
<div class="naber">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="logo">
|
<div class="logo" @click="handTaskHome">
|
||||||
<router-link to="/">
|
<a><img src="@/assets/img/task/logo.png" alt="" /></a>
|
||||||
<a><img src="@/assets/img/task/logo.png" alt="" /></a>
|
|
||||||
</router-link>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="header-right">
|
<div class="header-right">
|
||||||
<div class="twitter">
|
<div class="twitter">
|
||||||
<a
|
<a
|
||||||
href="https://twitter.com/CEBG_GAME"
|
href="https://twitter.com/_CounterFire"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
>
|
>
|
||||||
@ -65,7 +63,6 @@ const formatAddress = computed(() => {
|
|||||||
return accountId;
|
return accountId;
|
||||||
});
|
});
|
||||||
async function login(event) {
|
async function login(event) {
|
||||||
|
|
||||||
var next = window.location.href;
|
var next = window.location.href;
|
||||||
if (!hasMetamask()) {
|
if (!hasMetamask()) {
|
||||||
var url = `https://metamask.app.link/dapp/${next}`;
|
var url = `https://metamask.app.link/dapp/${next}`;
|
||||||
@ -78,8 +75,9 @@ async function login(event) {
|
|||||||
// console.log("logined:", chain.chainManager.isLogined);
|
// console.log("logined:", chain.chainManager.isLogined);
|
||||||
chain.logined = chain.chainManager.isLogined;
|
chain.logined = chain.chainManager.isLogined;
|
||||||
const resq = await UserStatus({
|
const resq = await UserStatus({
|
||||||
account: AppModule.accountId,invite_code: route.query.code
|
account: AppModule.accountId,
|
||||||
});
|
invite_code: route.query.code,
|
||||||
|
});
|
||||||
emit("login-success");
|
emit("login-success");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -91,7 +89,15 @@ const logout = async () => {
|
|||||||
chain.logined = chain.chainManager.isLogined;
|
chain.logined = chain.chainManager.isLogined;
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
};
|
};
|
||||||
|
const handTaskHome = () => {
|
||||||
|
//router.push("/quest");
|
||||||
|
const code = route.query.code;
|
||||||
|
if (code) {
|
||||||
|
router.push({ path: "/quest", query: { code: code } });
|
||||||
|
} else {
|
||||||
|
router.push("/quest");
|
||||||
|
}
|
||||||
|
};
|
||||||
const handleCopy = () => {
|
const handleCopy = () => {
|
||||||
const accountId = AppModule.accountId;
|
const accountId = AppModule.accountId;
|
||||||
reset();
|
reset();
|
||||||
|
@ -12,6 +12,11 @@ const routes = [
|
|||||||
component: () => import(/* webpackChunkName "marketplace" */ '@/views/TaskView.vue'),
|
component: () => import(/* webpackChunkName "marketplace" */ '@/views/TaskView.vue'),
|
||||||
|
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/index.html',
|
||||||
|
name: 'index',
|
||||||
|
component: () => import(/* webpackChunkName "index" */ '@/views/TaskView.vue'),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '/undertest',
|
path: '/undertest',
|
||||||
name: 'TaskOne',
|
name: 'TaskOne',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user