mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-04 23:18:44 +08:00
Merge pull request #72 from cikezhu/main
This commit is contained in:
@@ -3,6 +3,7 @@ import NameTestView from '@/views/system/NameTestView.vue'
|
|||||||
import NetTestView from '@/views/system/NetTestView.vue'
|
import NetTestView from '@/views/system/NetTestView.vue'
|
||||||
import LoggingView from '@/views/system/LoggingView.vue'
|
import LoggingView from '@/views/system/LoggingView.vue'
|
||||||
import RuleTestView from '@/views/system/RuleTestView.vue'
|
import RuleTestView from '@/views/system/RuleTestView.vue'
|
||||||
|
import store from '@/store'
|
||||||
|
|
||||||
// App捷径
|
// App捷径
|
||||||
const appsMenu = ref(false)
|
const appsMenu = ref(false)
|
||||||
@@ -18,6 +19,12 @@ const loggingDialog = ref(false)
|
|||||||
|
|
||||||
// 过滤规则弹窗
|
// 过滤规则弹窗
|
||||||
const ruleTestDialog = ref(false)
|
const ruleTestDialog = ref(false)
|
||||||
|
|
||||||
|
// 拼接全部日志url
|
||||||
|
function allLoggingUrl() {
|
||||||
|
const token = store.state.auth.token
|
||||||
|
return `${import.meta.env.VITE_API_BASE_URL}system/logging?token=${token}&length=-1`
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@@ -171,8 +178,19 @@ const ruleTestDialog = ref(false)
|
|||||||
class="w-full lg:w-4/5"
|
class="w-full lg:w-4/5"
|
||||||
scrollable
|
scrollable
|
||||||
>
|
>
|
||||||
<VCard title="实时日志">
|
<VCard>
|
||||||
<DialogCloseBtn @click="loggingDialog = false" />
|
<DialogCloseBtn @click="loggingDialog = false" />
|
||||||
|
<VCardItem>
|
||||||
|
<VCardTitle class="inline-flex">
|
||||||
|
实时日志
|
||||||
|
<a class="mx-2 inline-flex items-center justify-center" :href="allLoggingUrl()" target="_blank">
|
||||||
|
<div class="inline-flex cursor-pointer items-center rounded-full bg-gray-600 px-2 text-sm text-gray-200 ring-1 ring-gray-500 transition hover:bg-gray-700">
|
||||||
|
<VIcon icon="mdi-open-in-new" />
|
||||||
|
<span class="ms-1">在新窗口中打开</span>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</VCardTitle>
|
||||||
|
</VCardItem>
|
||||||
<VCardText>
|
<VCardText>
|
||||||
<LoggingView />
|
<LoggingView />
|
||||||
</VCardText>
|
</VCardText>
|
||||||
|
|||||||
Reference in New Issue
Block a user