feat: null value judgment

This commit is contained in:
Alisa | Side.one 2023-06-06 20:54:03 +08:00
parent 03d502ccd4
commit 99a24fbc8a

View File

@ -26,11 +26,15 @@ function preventClick(event: any) {
}
function confirm() {
errorMessage.value = '';
const key = searchQuery.value;
if (!key){
errorMessage.value = 'Please enter a value!';
return
}
const height = /^\d+$/;
const txhash = /^[A-Z\d]{64}$/;
const addr = /^[a-z]+1[a-z\d]{38,58}$/;
const key = searchQuery.value;
const current = blockStore?.current?.chainName || '';
const routeParams = vueRouters?.currentRoute?.value;