From 76683371cf00e3b9487be372f835788b530e01cd Mon Sep 17 00:00:00 2001 From: sudoooooo Date: Wed, 15 May 2024 20:34:56 +0800 Subject: [PATCH] feat: lint --- web/src/render/pages/ErrorPage.vue | 2 +- web/src/render/pages/IndexPage.vue | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/web/src/render/pages/ErrorPage.vue b/web/src/render/pages/ErrorPage.vue index 43318d19..30c5a30d 100755 --- a/web/src/render/pages/ErrorPage.vue +++ b/web/src/render/pages/ErrorPage.vue @@ -18,7 +18,7 @@ const errorImageUrl = computed(() => { const errorType = store.state?.errorInfo?.errorType const imageMap = { overTime: '/imgs/icons/overtime.webp', - default: '/imgs/icons/error.webp', + default: '/imgs/icons/error.webp' } return imageMap[errorType as 'overTime'] || imageMap.default diff --git a/web/src/render/pages/IndexPage.vue b/web/src/render/pages/IndexPage.vue index ae6336bb..784f10f5 100644 --- a/web/src/render/pages/IndexPage.vue +++ b/web/src/render/pages/IndexPage.vue @@ -31,13 +31,13 @@ import encrypt from '../utils/encrypt' import useCommandComponent from '../hooks/useCommandComponent' interface Props { - questionInfo?: any, - isMobile?: boolean, + questionInfo?: any + isMobile?: boolean } withDefaults(defineProps(), { questionInfo: {}, - isMobile: false, + isMobile: false }) const mainRef = ref() @@ -111,7 +111,7 @@ const handleSubmit = () => { onConfirm: async () => { try { submitSurver() - } catch(error) { + } catch (error) { console.log(error) } finally { confirm.close()