chore: update

This commit is contained in:
huzibaca
2024-11-08 21:46:15 +08:00
parent 20d163cf3a
commit c3e24d7b96
20 changed files with 887 additions and 4 deletions

9
src/utils/helper.ts Normal file
View File

@@ -0,0 +1,9 @@
export const isValidUrl = (url: string) => {
try {
new URL(url);
return true;
} catch (e) {
console.log(e);
return false;
}
};