Commit 1a2d3272 authored by xiaoye's avatar xiaoye

fix

parent b9c2d9b8
Pipeline #39504 passed with stages
in 3 minutes and 14 seconds
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
<br> <br>
<uni-easyinput v-show = 'operatorChk()' type = 'text' placeholder = '卡图图床(例:https://example.com/api/)' v-model = 'tournament.pics'/> <uni-easyinput v-show = 'operatorChk()' type = 'text' placeholder = '卡图图床(例:https://example.com/api/)' v-model = 'tournament.pics'/>
<br> <br>
<view class = 'button' @click = 'tournament.update()' v-show = 'operatorChk()'> <view class = 'button' @click = 'tournament.update()' v-if = 'operatorChk()'>
<view> <view>
<span>设置</span> <span>设置</span>
<uni-icons type = 'calendar'></uni-icons> <uni-icons type = 'calendar'></uni-icons>
......
...@@ -338,6 +338,8 @@ ...@@ -338,6 +338,8 @@
if (i) collaborators.push(i); if (i) collaborators.push(i);
} }
tournament.collaborators = collaborators; tournament.collaborators = collaborators;
emitter.emit(Const.settingInit, tournament);
emitter.emit(Const.searcherInit, search);
}, },
updateRounds : (round : number) : void => { updateRounds : (round : number) : void => {
tournament.rule.settings.rounds = round; tournament.rule.settings.rounds = round;
...@@ -456,11 +458,6 @@ ...@@ -456,11 +458,6 @@
window.addEventListener('hashchange', loading); window.addEventListener('hashchange', loading);
}); });
onMounted(() => {
emitter.emit(Const.settingInit, tournament);
emitter.emit(Const.searcherInit, search);
});
onUnmounted(() => { onUnmounted(() => {
document.removeEventListener("click", page.show.clear); document.removeEventListener("click", page.show.clear);
emitter.off(Const.tournamentInfo, page.show.drawer); emitter.off(Const.tournamentInfo, page.show.drawer);
......
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