-
-
WebSocket Server 配置
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -45,33 +42,15 @@ 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
new file mode 100644
index 00000000..b4efb6ee
--- /dev/null
+++ b/napcat.webui/src/ts/event-bus.ts
@@ -0,0 +1,3 @@
+import mitt from "mitt"
+const emitter = mitt();
+export default emitter;