-
+
@@ -39,16 +39,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';
+ }
}
-});
+);
-
+
diff --git a/napcat.webui/src/pages/network/WebsocketClientComponent.vue b/napcat.webui/src/pages/network/WebsocketClientComponent.vue
index fc05eb9f..7ea25fb7 100644
--- a/napcat.webui/src/pages/network/WebsocketClientComponent.vue
+++ b/napcat.webui/src/pages/network/WebsocketClientComponent.vue
@@ -36,16 +36,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';
+ }
}
-});
+);
-
+
diff --git a/napcat.webui/src/pages/network/WebsocketServerComponent.vue b/napcat.webui/src/pages/network/WebsocketServerComponent.vue
index c6c1a740..4e95c9ca 100644
--- a/napcat.webui/src/pages/network/WebsocketServerComponent.vue
+++ b/napcat.webui/src/pages/network/WebsocketServerComponent.vue
@@ -42,15 +42,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';
+ }
}
-});
+);
-
+
diff --git a/napcat.webui/src/ts/event-bus.ts b/napcat.webui/src/ts/event-bus.ts
index b4efb6ee..40972579 100644
--- a/napcat.webui/src/ts/event-bus.ts
+++ b/napcat.webui/src/ts/event-bus.ts
@@ -1,3 +1,3 @@
-import mitt from "mitt"
+import mitt from 'mitt';
const emitter = mitt();
export default emitter;