Skip to content

Commit d893291

Browse files
committed
ErrorのSnackBarを追加
1 parent 4374187 commit d893291

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/pages/index.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@
6464
</div>
6565
</v-flex>
6666
</v-flex>
67+
<v-snackbar :timeout="5000" :value="error" absolute top color="#C01B61">
68+
クラスIDが正しくありません
69+
</v-snackbar>
6770
</v-layout>
6871
</template>
6972

@@ -77,7 +80,6 @@ type DataType = {
7780
classId: string
7881
loading: boolean
7982
error: boolean
80-
errorMessages: string
8183
valid: boolean
8284
}
8385
@@ -91,7 +93,6 @@ export default Vue.extend({
9193
classId: '',
9294
loading: false,
9395
error: false,
94-
errorMessages: '',
9596
valid: true
9697
}
9798
},
@@ -103,10 +104,9 @@ export default Vue.extend({
103104
.then(() => {
104105
this.$router.push('/classes')
105106
})
106-
.catch((e: Error) => {
107+
.catch(() => {
107108
this.loading = false
108109
this.error = true
109-
this.errorMessages = e.message
110110
})
111111
}
112112
}

0 commit comments

Comments
 (0)