Skip to content

Commit

Permalink
💩 Mitigate iscnIdInput from qs cause button to stuck
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Mar 12, 2024
1 parent 649ffe6 commit 368471e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pages/mint-nft/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ const step = ref(1)
const error = ref('')
const isLoading = ref(false)
const iscnIdInput = ref(route.query.class_id as string || route.query.iscn_id as string || '')
const iscnIdInput = ref('')
const iscnOwner = ref('')
const iscnCreateData = ref<any>(null)
const iscnData = ref<any>(null)
Expand Down Expand Up @@ -479,6 +479,11 @@ watch(iscnData, (recordData) => {
}
})
onMounted(() => {
// HACK: mitigate disable state stuck issue when iscnIdInput is inited as qs in data
iscnIdInput.value = route.query.class_id as string || route.query.iscn_id as string || ''
})
const validate = (state: any): FormError[] => {
hasError.value = false
const errors = []
Expand Down

0 comments on commit 368471e

Please sign in to comment.