Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.

Commit fc937aa

Browse files
committed
修复创建任务时设置为null导致错误的问题
1 parent 99cbab9 commit fc937aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

front/src/components/Task/Create.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<Input :disabled="disabledForm"
3131
v-model="form.response.fileName" />
3232
</FormItem>
33-
<FormItem :label="$t('tasks.fileSize')">{{ form.response.totalSize?$numeral(form.response.totalSize).format('0.000 ib'):$t('tasks.unknowLeft') }}</FormItem>
33+
<FormItem :label="$t('tasks.fileSize')">{{ form.response.totalSize?$numeral(form.response.totalSize).format('0.00 ib'):$t('tasks.unknowLeft') }}</FormItem>
3434
<FormItem :label="$t('tasks.connections')"
3535
prop="config.connections">
3636
<Slider v-if="response.supportRange"
@@ -201,6 +201,7 @@ export default {
201201
}
202202
},
203203
setDefaultConfig() {
204+
this.form.config = {}
204205
this.$noSpinHttp.get('http://127.0.0.1:26339/config').then(result => {
205206
const serverConfig = result.data
206207
this.form.config = {

0 commit comments

Comments
 (0)