mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-16 01:40:15 +08:00
fix(dashboard): remove duplicate platform logs (#9291)
This commit is contained in:
@@ -17,11 +17,6 @@
|
||||
"token": "Token",
|
||||
"description": "Description"
|
||||
},
|
||||
"logs": {
|
||||
"title": "Platform Logs",
|
||||
"expand": "Expand",
|
||||
"collapse": "Collapse"
|
||||
},
|
||||
"dialog": {
|
||||
"add": "Add",
|
||||
"edit": "Edit",
|
||||
|
||||
@@ -17,11 +17,6 @@
|
||||
"token": "Токен",
|
||||
"description": "Описание"
|
||||
},
|
||||
"logs": {
|
||||
"title": "Логи платформы",
|
||||
"expand": "Развернуть",
|
||||
"collapse": "Свернуть"
|
||||
},
|
||||
"dialog": {
|
||||
"add": "Добавить",
|
||||
"edit": "Изменить",
|
||||
|
||||
@@ -17,11 +17,6 @@
|
||||
"token": "Token",
|
||||
"description": "描述"
|
||||
},
|
||||
"logs": {
|
||||
"title": "平台日志",
|
||||
"expand": "展开",
|
||||
"collapse": "收起"
|
||||
},
|
||||
"dialog": {
|
||||
"add": "新增",
|
||||
"edit": "编辑",
|
||||
|
||||
@@ -91,25 +91,6 @@
|
||||
</v-row>
|
||||
</div>
|
||||
|
||||
<!-- 日志部分 -->
|
||||
<v-card elevation="0" class="mt-4 mb-10">
|
||||
<v-card-title class="d-flex align-center py-3 px-4">
|
||||
<v-icon class="me-2">mdi-console-line</v-icon>
|
||||
<span class="text-h4">{{ tm('logs.title') }}</span>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn variant="text" color="primary" @click="showConsole = !showConsole">
|
||||
{{ showConsole ? tm('logs.collapse') : tm('logs.expand') }}
|
||||
<v-icon>{{ showConsole ? 'mdi-chevron-up' : 'mdi-chevron-down' }}</v-icon>
|
||||
</v-btn>
|
||||
</v-card-title>
|
||||
|
||||
|
||||
<v-expand-transition>
|
||||
<v-card-text class="pa-0" v-if="showConsole">
|
||||
<ConsoleDisplayer style="background-color: #1e1e1e; height: 300px; border-radius: 0"></ConsoleDisplayer>
|
||||
</v-card-text>
|
||||
</v-expand-transition>
|
||||
</v-card>
|
||||
</v-container>
|
||||
|
||||
<!-- 添加平台适配器对话框 -->
|
||||
@@ -231,7 +212,6 @@
|
||||
import { botApi, fileApi, systemConfigApi } from '@/api/v1';
|
||||
import AstrBotConfig from '@/components/shared/AstrBotConfig.vue';
|
||||
import WaitingForRestart from '@/components/shared/WaitingForRestart.vue';
|
||||
import ConsoleDisplayer from '@/components/shared/ConsoleDisplayer.vue';
|
||||
import ItemCard from '@/components/shared/ItemCard.vue';
|
||||
import AddNewPlatform from '@/components/platform/AddNewPlatform.vue';
|
||||
import QrCodeViewer from '@/components/shared/QrCodeViewer.vue';
|
||||
@@ -249,7 +229,6 @@ export default {
|
||||
components: {
|
||||
AstrBotConfig,
|
||||
WaitingForRestart,
|
||||
ConsoleDisplayer,
|
||||
ItemCard,
|
||||
AddNewPlatform,
|
||||
QrCodeViewer,
|
||||
@@ -279,8 +258,6 @@ export default {
|
||||
save_message: "",
|
||||
save_message_success: "success",
|
||||
|
||||
showConsole: localStorage.getItem('platformPage_showConsole') === 'true',
|
||||
|
||||
showWebhookDialog: false,
|
||||
currentWebhookUuid: '',
|
||||
|
||||
@@ -299,10 +276,6 @@ export default {
|
||||
},
|
||||
|
||||
watch: {
|
||||
showConsole(newValue) {
|
||||
localStorage.setItem('platformPage_showConsole', newValue.toString());
|
||||
},
|
||||
|
||||
showIdConflictDialog(newValue) {
|
||||
if (!newValue && this.idConflictResolve) {
|
||||
this.idConflictResolve(false);
|
||||
|
||||
Reference in New Issue
Block a user