diff --git a/src/components/common/Countdown.vue b/src/components/common/Countdown.vue index 401d1a3..0850596 100644 --- a/src/components/common/Countdown.vue +++ b/src/components/common/Countdown.vue @@ -87,6 +87,7 @@ watch( const secondsNum = Math.floor((newVal % (1000 * 60)) / 1000) seconds.value = secondsNum.toString().padStart(2, '0') }, + { immediate: true }, ) diff --git a/src/components/craft/AddCraft/index.vue b/src/components/craft/AddCraft/index.vue index 065a440..bea6a43 100644 --- a/src/components/craft/AddCraft/index.vue +++ b/src/components/craft/AddCraft/index.vue @@ -134,7 +134,7 @@ const addStep = (data: any) => { - +
diff --git a/src/components/home/ExecuteCraft/index.vue b/src/components/home/ExecuteCraft/index.vue index 33c544c..489bcf2 100644 --- a/src/components/home/ExecuteCraft/index.vue +++ b/src/components/home/ExecuteCraft/index.vue @@ -88,6 +88,13 @@ const getOres = async () => { const res = await getOreList() oreList.value = res.list } + +const selectVisible = ref(false) +const checkChange = () => { + selectedColumns.value = Array.from({ length: 5 }).fill(selectVisible.value) + form.value.columns = selectedColumns.value.map((item, index) => index + 1).filter(item => selectedColumns.value[item - 1]) + formRef.value.validateField('columns') +}