diff --git a/napcat.webui/package.json b/napcat.webui/package.json
index 98d32e61..eec25b08 100644
--- a/napcat.webui/package.json
+++ b/napcat.webui/package.json
@@ -4,7 +4,7 @@
"version": "0.0.0",
"type": "module",
"scripts": {
- "webui:lint": "eslint . --fix",
+ "webui:lint": "eslint --fix src/**/*.{js,ts,vue}",
"webui:dev": "vite",
"webui:build": "vue-tsc -b && vite build",
"webui:preview": "vite preview"
diff --git a/napcat.webui/src/pages/AboutUs.vue b/napcat.webui/src/pages/AboutUs.vue
index 63a45fb2..4bdcf6fa 100644
--- a/napcat.webui/src/pages/AboutUs.vue
+++ b/napcat.webui/src/pages/AboutUs.vue
@@ -23,9 +23,7 @@
-
+
\ No newline at end of file
+}
+
diff --git a/napcat.webui/src/pages/OtherConfig.vue b/napcat.webui/src/pages/OtherConfig.vue
index f2e4dc66..685c2dd5 100644
--- a/napcat.webui/src/pages/OtherConfig.vue
+++ b/napcat.webui/src/pages/OtherConfig.vue
@@ -131,4 +131,4 @@ onMounted(() => {
margin-left: 20px;
}
}
-
\ No newline at end of file
+
diff --git a/napcat.webui/src/pages/network/EmptyStateComponent.vue b/napcat.webui/src/pages/network/EmptyStateComponent.vue
index 6ce5e6a4..29fb8e9b 100644
--- a/napcat.webui/src/pages/network/EmptyStateComponent.vue
+++ b/napcat.webui/src/pages/network/EmptyStateComponent.vue
@@ -19,4 +19,4 @@ defineProps<{ showAddTabDialog: () => void }>();
height: 100%;
text-align: center;
}
-
\ No newline at end of file
+
diff --git a/napcat.webui/src/pages/network/HttpClientComponent.vue b/napcat.webui/src/pages/network/HttpClientComponent.vue
index 2ef667c2..71cd8d14 100644
--- a/napcat.webui/src/pages/network/HttpClientComponent.vue
+++ b/napcat.webui/src/pages/network/HttpClientComponent.vue
@@ -36,14 +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';
+ }
}
-});
+);
\ No newline at end of file
+
diff --git a/napcat.webui/src/pages/network/HttpServerComponent.vue b/napcat.webui/src/pages/network/HttpServerComponent.vue
index 56b7f0f2..5e61b253 100644
--- a/napcat.webui/src/pages/network/HttpServerComponent.vue
+++ b/napcat.webui/src/pages/network/HttpServerComponent.vue
@@ -42,14 +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';
+ }
}
-});
+);
\ No newline at end of file
+
diff --git a/napcat.webui/src/pages/network/WebsocketClientComponent.vue b/napcat.webui/src/pages/network/WebsocketClientComponent.vue
index 3b2a516a..d7c2f657 100644
--- a/napcat.webui/src/pages/network/WebsocketClientComponent.vue
+++ b/napcat.webui/src/pages/network/WebsocketClientComponent.vue
@@ -39,14 +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';
+ }
}
-});
+);
\ No newline at end of file
+
diff --git a/napcat.webui/src/pages/network/WebsocketServerComponent.vue b/napcat.webui/src/pages/network/WebsocketServerComponent.vue
index 58c5fdc9..88830ffa 100644
--- a/napcat.webui/src/pages/network/WebsocketServerComponent.vue
+++ b/napcat.webui/src/pages/network/WebsocketServerComponent.vue
@@ -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';
+ }
}
-});
+);
\ No newline at end of file
+
diff --git a/napcat.webui/src/pages/new/NetWork.old.vue b/napcat.webui/src/pages/new/NetWork.old.vue
index 09534da4..f73cf8d8 100644
--- a/napcat.webui/src/pages/new/NetWork.old.vue
+++ b/napcat.webui/src/pages/new/NetWork.old.vue
@@ -1,6 +1,13 @@
-
+
- 保存
+ 保存
@@ -183,7 +190,7 @@ const showAddTabDialog = () => {
const addTab = async () => {
const { name, type } = newTab.value;
- if (clientPanelData.some(panel => panel.name === name)) {
+ if (clientPanelData.some((panel) => panel.name === name)) {
MessagePlugin.error('选项卡名称已存在');
return;
}
@@ -264,4 +271,4 @@ onMounted(() => {
justify-content: center;
margin-top: 20px;
}
-
\ No newline at end of file
+