integrate core codes

This commit is contained in:
Alireza Ahmadi
2024-12-16 00:12:09 +01:00
parent f1b6c8a131
commit ecd9348a0f
22 changed files with 1528 additions and 424 deletions
+3 -3
View File
@@ -3,7 +3,7 @@
<v-card class="rounded-lg">
<v-card-title>
<v-row>
<v-col>{{ $t('basic.log.title') + " - " + (logType == 's-ui'? "S-UI" : "Sing-Box") }}</v-col>
<v-col>{{ $t('basic.log.title') }}</v-col>
<v-spacer></v-spacer>
<v-col cols="auto">
<v-icon icon="mdi-close" @click="$emit('close')" />
@@ -51,7 +51,7 @@
import HttpUtils from '@/plugins/httputil';
export default {
props: ['logType', 'visible'],
props: ['visible'],
data() {
return {
loading: false,
@@ -69,7 +69,7 @@ export default {
methods: {
async loadData() {
this.loading = true
const data = await HttpUtils.get('api/logs',{ s: this.$props.logType, c: this.logCount, l: this.logLevel })
const data = await HttpUtils.get('api/logs',{ c: this.logCount, l: this.logLevel })
if (data.success) {
this.lines = data.obj?? []
this.loading = false