Skip to content

Commit

Permalink
修复创建任务时设置为null导致错误的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
monkeyWie committed Nov 1, 2018
1 parent 99cbab9 commit fc937aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion front/src/components/Task/Create.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<Input :disabled="disabledForm"
v-model="form.response.fileName" />
</FormItem>
<FormItem :label="$t('tasks.fileSize')">{{ form.response.totalSize?$numeral(form.response.totalSize).format('0.000 ib'):$t('tasks.unknowLeft') }}</FormItem>
<FormItem :label="$t('tasks.fileSize')">{{ form.response.totalSize?$numeral(form.response.totalSize).format('0.00 ib'):$t('tasks.unknowLeft') }}</FormItem>
<FormItem :label="$t('tasks.connections')"
prop="config.connections">
<Slider v-if="response.supportRange"
Expand Down Expand Up @@ -201,6 +201,7 @@ export default {
}
},
setDefaultConfig() {
this.form.config = {}
this.$noSpinHttp.get('http://127.0.0.1:26339/config').then(result => {
const serverConfig = result.data
this.form.config = {
Expand Down

0 comments on commit fc937aa

Please sign in to comment.