feat: fix "" > ''

pull/33/head
orzi! 2 years ago
parent 2c81762762
commit 57e7443e10

@ -113,7 +113,7 @@ const replyAtUsername = ref('');
const replyComposeRef = ref(); const replyComposeRef = ref();
const emit = defineEmits<{ const emit = defineEmits<{
(e: "reload"): void (e: 'reload'): void
}>(); }>();
const props = withDefaults(defineProps<{ const props = withDefaults(defineProps<{
comment: Item.CommentProps comment: Item.CommentProps

@ -170,7 +170,7 @@ import { parsePostTag } from '@/utils/content';
import type { MentionOption, UploadFileInfo, UploadInst } from 'naive-ui'; import type { MentionOption, UploadFileInfo, UploadInst } from 'naive-ui';
const emit = defineEmits<{ const emit = defineEmits<{
(e: "post-success"): void (e: 'post-success'): void
}>(); }>();
const props = withDefaults(defineProps<{ const props = withDefaults(defineProps<{
lock: number, lock: number,

@ -50,11 +50,11 @@ const props = withDefaults(defineProps<{
}>(), { }>(), {
commentId: 0, commentId: 0,
atUserid: 0, atUserid: 0,
atUsername: "" atUsername: ''
}); });
const emit = defineEmits<{ const emit = defineEmits<{
(e: "reload"): void, (e: 'reload'): void,
(e: "reset"): void (e: 'reset'): void
}>(); }>();
const inputInstRef = ref<InputInst>(); const inputInstRef = ref<InputInst>();
const showReply = ref(false); const showReply = ref(false);

@ -76,8 +76,8 @@ const props = withDefaults(defineProps<{
}>(), {}); }>(), {});
const store = useStore(); const store = useStore();
const emit = defineEmits<{ const emit = defineEmits<{
(e: "focusReply", reply: Item.ReplyProps): void, (e: 'focusReply', reply: Item.ReplyProps): void,
(e: "reload"): void (e: 'reload'): void
}>(); }>();
const focusReply = () => { const focusReply = () => {

@ -136,7 +136,7 @@ declare module NetParams {
} }
interface PostGetTags { interface PostGetTags {
type: "hot" | string, type: 'hot' | string,
num: number num: number
} }

@ -285,9 +285,9 @@ const modelData = reactive({
imgCaptcha: '', imgCaptcha: '',
phone: '', phone: '',
phone_captcha: '', phone_captcha: '',
password: "", password: '',
old_password: "", old_password: '',
reenteredPassword: "", reenteredPassword: '',
}); });
const beforeUpload = async (data: any) => { const beforeUpload = async (data: any) => {

Loading…
Cancel
Save