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