mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 07:28:37 +08:00
fix ui
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
|||||||
VITE_API_BASE_URL=http://localhost:3001/api/v1/
|
VITE_API_BASE_URL=http://10.10.10.11:3001/api/v1/
|
||||||
|
|||||||
@@ -18,6 +18,8 @@ const { mdAndDown } = useDisplay()
|
|||||||
|
|
||||||
const refNav = ref()
|
const refNav = ref()
|
||||||
|
|
||||||
|
const menuShow = ref(false)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
ℹ️ Close overlay side when route is changed
|
ℹ️ Close overlay side when route is changed
|
||||||
Close overlay vertical nav when link is clicked
|
Close overlay vertical nav when link is clicked
|
||||||
@@ -37,11 +39,16 @@ const updateIsVerticalNavScrolled = (val: boolean) => (isVerticalNavScrolled.val
|
|||||||
function handleNavScroll(evt: Event) {
|
function handleNavScroll(evt: Event) {
|
||||||
isVerticalNavScrolled.value = (evt.target as HTMLElement).scrollTop > 0
|
isVerticalNavScrolled.value = (evt.target as HTMLElement).scrollTop > 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
menuShow.value = true
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<Component
|
<Component
|
||||||
:is="props.tag"
|
:is="props.tag"
|
||||||
|
v-show="menuShow"
|
||||||
ref="refNav"
|
ref="refNav"
|
||||||
class="layout-vertical-nav touch-none"
|
class="layout-vertical-nav touch-none"
|
||||||
:class="[
|
:class="[
|
||||||
|
|||||||
@@ -78,9 +78,8 @@ async function queryIncludeExcludeFilter() {
|
|||||||
const result: { [key: string]: any } = await api.get(
|
const result: { [key: string]: any } = await api.get(
|
||||||
'system/setting/DefaultIncludeExcludeFilter',
|
'system/setting/DefaultIncludeExcludeFilter',
|
||||||
)
|
)
|
||||||
if (result.data?.value) {
|
if (result.data?.value)
|
||||||
defaultIncludeExcludeFilter.value = result.data?.value
|
defaultIncludeExcludeFilter.value = result.data?.value
|
||||||
}
|
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
console.log(error)
|
console.log(error)
|
||||||
@@ -145,9 +144,9 @@ async function saveIncludeExcludeFilter() {
|
|||||||
defaultIncludeExcludeFilter.value,
|
defaultIncludeExcludeFilter.value,
|
||||||
)
|
)
|
||||||
if (result.success)
|
if (result.success)
|
||||||
$toast.success("默认包含/排除规则保存成功")
|
$toast.success('默认包含/排除规则保存成功')
|
||||||
else
|
else
|
||||||
$toast.error("默认包含/排除规则保存失败!")
|
$toast.error('默认包含/排除规则保存失败!')
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
console.log(error)
|
console.log(error)
|
||||||
@@ -278,12 +277,18 @@ onMounted(() => {
|
|||||||
<VCol cols="12">
|
<VCol cols="12">
|
||||||
<VCard title="下载优先规则">
|
<VCard title="下载优先规则">
|
||||||
<VCardText>
|
<VCardText>
|
||||||
<VSelect
|
<VForm>
|
||||||
v-model="selectedTorrentPriority"
|
<VRow>
|
||||||
:items="TorrentPriorityItems"
|
<VCol cols="12" md="6">
|
||||||
label="优先规则"
|
<VSelect
|
||||||
outlined
|
v-model="selectedTorrentPriority"
|
||||||
/>
|
:items="TorrentPriorityItems"
|
||||||
|
label="优先规则"
|
||||||
|
outlined
|
||||||
|
/>
|
||||||
|
</VCol>
|
||||||
|
</VRow>
|
||||||
|
</vform>
|
||||||
</VCardText>
|
</VCardText>
|
||||||
<VCardItem>
|
<VCardItem>
|
||||||
<VBtn
|
<VBtn
|
||||||
@@ -301,14 +306,14 @@ onMounted(() => {
|
|||||||
<VCardText>
|
<VCardText>
|
||||||
<VForm>
|
<VForm>
|
||||||
<VRow>
|
<VRow>
|
||||||
<VCol cols="12">
|
<VCol cols="12" md="6">
|
||||||
<VTextField
|
<VTextField
|
||||||
v-model="defaultIncludeExcludeFilter.include"
|
v-model="defaultIncludeExcludeFilter.include"
|
||||||
type="text"
|
type="text"
|
||||||
label="包含(关键字、正则式)"
|
label="包含(关键字、正则式)"
|
||||||
/>
|
/>
|
||||||
</VCol>
|
</VCol>
|
||||||
<VCol cols="12">
|
<VCol cols="12" md="6">
|
||||||
<VTextField
|
<VTextField
|
||||||
v-model="defaultIncludeExcludeFilter.exclude"
|
v-model="defaultIncludeExcludeFilter.exclude"
|
||||||
type="text"
|
type="text"
|
||||||
@@ -322,7 +327,9 @@ onMounted(() => {
|
|||||||
<VBtn
|
<VBtn
|
||||||
type="submit"
|
type="submit"
|
||||||
@click="saveIncludeExcludeFilter"
|
@click="saveIncludeExcludeFilter"
|
||||||
> 保存 </VBtn>
|
>
|
||||||
|
保存
|
||||||
|
</VBtn>
|
||||||
</VCardItem>
|
</VCardItem>
|
||||||
</VCard>
|
</VCard>
|
||||||
</VCol>
|
</VCol>
|
||||||
|
|||||||
Reference in New Issue
Block a user