Commit be0d84ad authored by xiaoye's avatar xiaoye

fix

parent ce473cfd
......@@ -113,6 +113,7 @@
<transition name = 'switch'>
<uni-list
v-show = 'search.result.total > 0 && page.menu'
:class = "{ vertical : size.width <= size.height}"
>
<uni-list-item
id = 'list'
......@@ -181,7 +182,7 @@
},
tournament : (v : number = 0): void => {
const url = window.location.href.split('/?');
emitter.emit(Const.changeUrl, `${url[0]}/${search.result.tournaments[v].id}${url[1] ? `/?${url[1]}` : ''}`);
emitter.emit(Const.changeUrl, `${url[0].endsWith('/') ? url[0] : `${url[0]}/`}${search.result.tournaments[v].id}${url[1] ? `/?${url[1]}` : ''}`);
},
menu : async(): Promise<void> => {
page.tournament = false;
......
......@@ -59,7 +59,7 @@ class MyCard {
this.email = '';
this.avatar = 'https://cdn02.moecube.com:444/accounts/default_avatar.jpg';
const url = window.location.href.split('/?');
emitter.emit(Const.changeUrl, `${url[0]}/`);
emitter.emit(Const.changeUrl, url[0].endsWith('/') ? url[0] : `${url[0]}/`);
}
}
......
......@@ -102,4 +102,10 @@
}
}
}
.vertical {
:deep(.uni-list-item) {
background: linear-gradient(to right, rgb(255, 228, 230), white, white, white, rgb(204, 251, 241)) !important;
}
}
}
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