chore: eslint

This commit is contained in:
pk5ls20
2024-11-17 03:35:20 +08:00
parent 3c10b82bab
commit cc73104d62
10 changed files with 215 additions and 191 deletions

View File

@@ -45,14 +45,17 @@ const props = defineProps<{
const messageFormatOptions = ref([
{ label: 'Array', value: 'array' },
{ label: 'String', value: 'string' }
{ label: 'String', value: 'string' },
]);
watch(() => props.config.messagePostFormat, (newValue) => {
if (newValue !== 'array' && newValue !== 'string') {
props.config.messagePostFormat = 'array';
watch(
() => props.config.messagePostFormat,
(newValue) => {
if (newValue !== 'array' && newValue !== 'string') {
props.config.messagePostFormat = 'array';
}
}
});
);
</script>
<style scoped>
@@ -71,4 +74,4 @@ watch(() => props.config.messagePostFormat, (newValue) => {
padding: 20px;
border-radius: 8px;
}
</style>
</style>