Commit 9e159479 authored by xiaoye's avatar xiaoye

Update main.vue

parent 790e6c06
......@@ -370,7 +370,7 @@
search.result.tournaments = result.tournaments;
},
mine : () => {
search.creator = Mycard.id.toString();
search.creator = Mycard.id >= 0 ? Mycard.id.toString() : '';
}
});
......@@ -542,8 +542,10 @@
} else {
if (window.location.pathname.length > 1)
window.location.replace(window.location.href.replace(window.location.pathname, ''))
else
else {
search.mine();
search.on();
}
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment