From 57e7443e10f827835456cb761a86c913fbde9c36 Mon Sep 17 00:00:00 2001 From: orzi! <1063614727@qq.com> Date: Tue, 31 May 2022 21:28:01 +0800 Subject: [PATCH] feat: fix "" > '' --- web/src/components/comment-item.vue | 2 +- web/src/components/compose-comment.vue | 2 +- web/src/components/compose-reply.vue | 6 +++--- web/src/components/reply-item.vue | 4 ++-- web/src/types/NetParams.d.ts | 2 +- web/src/views/Setting.vue | 6 +++--- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/web/src/components/comment-item.vue b/web/src/components/comment-item.vue index b1799e05..c5b4f2ee 100644 --- a/web/src/components/comment-item.vue +++ b/web/src/components/comment-item.vue @@ -113,7 +113,7 @@ const replyAtUsername = ref(''); const replyComposeRef = ref(); const emit = defineEmits<{ - (e: "reload"): void + (e: 'reload'): void }>(); const props = withDefaults(defineProps<{ comment: Item.CommentProps diff --git a/web/src/components/compose-comment.vue b/web/src/components/compose-comment.vue index ea23f264..e6c9fded 100644 --- a/web/src/components/compose-comment.vue +++ b/web/src/components/compose-comment.vue @@ -170,7 +170,7 @@ import { parsePostTag } from '@/utils/content'; import type { MentionOption, UploadFileInfo, UploadInst } from 'naive-ui'; const emit = defineEmits<{ - (e: "post-success"): void + (e: 'post-success'): void }>(); const props = withDefaults(defineProps<{ lock: number, diff --git a/web/src/components/compose-reply.vue b/web/src/components/compose-reply.vue index 2f19810e..cc22b195 100644 --- a/web/src/components/compose-reply.vue +++ b/web/src/components/compose-reply.vue @@ -50,11 +50,11 @@ const props = withDefaults(defineProps<{ }>(), { commentId: 0, atUserid: 0, - atUsername: "" + atUsername: '' }); const emit = defineEmits<{ - (e: "reload"): void, - (e: "reset"): void + (e: 'reload'): void, + (e: 'reset'): void }>(); const inputInstRef = ref(); const showReply = ref(false); diff --git a/web/src/components/reply-item.vue b/web/src/components/reply-item.vue index f2b33aaf..5f75a038 100644 --- a/web/src/components/reply-item.vue +++ b/web/src/components/reply-item.vue @@ -76,8 +76,8 @@ const props = withDefaults(defineProps<{ }>(), {}); const store = useStore(); const emit = defineEmits<{ - (e: "focusReply", reply: Item.ReplyProps): void, - (e: "reload"): void + (e: 'focusReply', reply: Item.ReplyProps): void, + (e: 'reload'): void }>(); const focusReply = () => { diff --git a/web/src/types/NetParams.d.ts b/web/src/types/NetParams.d.ts index 6cbc2391..3cfbddeb 100644 --- a/web/src/types/NetParams.d.ts +++ b/web/src/types/NetParams.d.ts @@ -136,7 +136,7 @@ declare module NetParams { } interface PostGetTags { - type: "hot" | string, + type: 'hot' | string, num: number } diff --git a/web/src/views/Setting.vue b/web/src/views/Setting.vue index 0d4e98de..bf57b588 100644 --- a/web/src/views/Setting.vue +++ b/web/src/views/Setting.vue @@ -285,9 +285,9 @@ const modelData = reactive({ imgCaptcha: '', phone: '', phone_captcha: '', - password: "", - old_password: "", - reenteredPassword: "", + password: '', + old_password: '', + reenteredPassword: '', }); const beforeUpload = async (data: any) => {