feat: lint

This commit is contained in:
sudoooooo 2024-05-15 20:34:56 +08:00
parent f9af6219ab
commit 76683371cf
2 changed files with 5 additions and 5 deletions

View File

@ -18,7 +18,7 @@ const errorImageUrl = computed(() => {
const errorType = store.state?.errorInfo?.errorType const errorType = store.state?.errorInfo?.errorType
const imageMap = { const imageMap = {
overTime: '/imgs/icons/overtime.webp', overTime: '/imgs/icons/overtime.webp',
default: '/imgs/icons/error.webp', default: '/imgs/icons/error.webp'
} }
return imageMap[errorType as 'overTime'] || imageMap.default return imageMap[errorType as 'overTime'] || imageMap.default

View File

@ -31,13 +31,13 @@ import encrypt from '../utils/encrypt'
import useCommandComponent from '../hooks/useCommandComponent' import useCommandComponent from '../hooks/useCommandComponent'
interface Props { interface Props {
questionInfo?: any, questionInfo?: any
isMobile?: boolean, isMobile?: boolean
} }
withDefaults(defineProps<Props>(), { withDefaults(defineProps<Props>(), {
questionInfo: {}, questionInfo: {},
isMobile: false, isMobile: false
}) })
const mainRef = ref<any>() const mainRef = ref<any>()
@ -111,7 +111,7 @@ const handleSubmit = () => {
onConfirm: async () => { onConfirm: async () => {
try { try {
submitSurver() submitSurver()
} catch(error) { } catch (error) {
console.log(error) console.log(error)
} finally { } finally {
confirm.close() confirm.close()