Commit b04b48e6 authored by xiaoye's avatar xiaoye

Update creator.vue

parent 7a69f090
...@@ -164,8 +164,7 @@ ...@@ -164,8 +164,7 @@
update : async() : Promise<void> => { update : async() : Promise<void> => {
try { try {
if (!create.visibility.select) if (!create.visibility.select)
// @ts-ignore create.visibility.select = 'Public';
create.visibility.select = 'SingleElimination';
if (create.import.chk) { if (create.import.chk) {
if (!create.import.id || create.import.id <= 0) if (!create.import.id || create.import.id <= 0)
throw new Error('请填写继承的比赛id'); throw new Error('请填写继承的比赛id');
...@@ -175,7 +174,7 @@ ...@@ -175,7 +174,7 @@
if (n > 0 && !Number.isInteger(n) || n <= 0) if (n > 0 && !Number.isInteger(n) || n <= 0)
throw new Error('出轮的人数必须是2的幂'); throw new Error('出轮的人数必须是2的幂');
} }
if (create.visibility.select = 'Swiss') { if (create.rule.select == 'Swiss') {
if (!create.rule.settings.winScore && create.rule.settings.winScore == undefined) if (!create.rule.settings.winScore && create.rule.settings.winScore == undefined)
throw new Error('请填写胜利分'); throw new Error('请填写胜利分');
if (!create.rule.settings.drawScore && create.rule.settings.drawScore == undefined) if (!create.rule.settings.drawScore && create.rule.settings.drawScore == undefined)
......
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