This commit is contained in:
jxxghp
2025-05-08 19:48:35 +08:00
parent ac0cbbdb95
commit 22a51a524e
6 changed files with 6 additions and 17 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ async function savaAlistConfig() {
</VCardText> </VCardText>
<VCardActions> <VCardActions>
<VSpacer /> <VSpacer />
<VBtn variant="elevated" @click="handleReset" prepend-icon="mdi-restore" class="px-5 me-3"> <VBtn variant="tonal" color="error" @click="handleReset" prepend-icon="mdi-restore" class="px-5 me-3">
{{ t('dialog.alistConfig.reset') }} {{ t('dialog.alistConfig.reset') }}
</VBtn> </VBtn>
<VBtn variant="elevated" @click="handleDone" prepend-icon="mdi-check" class="px-5 me-3"> <VBtn variant="elevated" @click="handleDone" prepend-icon="mdi-check" class="px-5 me-3">
+1 -1
View File
@@ -125,7 +125,7 @@ onUnmounted(() => {
</VCardText> </VCardText>
<VCardActions> <VCardActions>
<VSpacer /> <VSpacer />
<VBtn variant="elevated" @click="handleReset" prepend-icon="mdi-restore" class="px-5 me-3"> <VBtn variant="tonal" color="error" @click="handleReset" prepend-icon="mdi-restore" class="px-5 me-3">
{{ t('dialog.aliyunAuth.reset') }} {{ t('dialog.aliyunAuth.reset') }}
</VBtn> </VBtn>
<VBtn variant="elevated" @click="handleDone" prepend-icon="mdi-check" class="px-5 me-3"> <VBtn variant="elevated" @click="handleDone" prepend-icon="mdi-check" class="px-5 me-3">
+1 -6
View File
@@ -44,12 +44,7 @@ async function handleReset() {
try { try {
const result: { [key: string]: any } = await api.get('/storage/reset/rclone') const result: { [key: string]: any } = await api.get('/storage/reset/rclone')
if (result.success) { if (result.success) {
// 重置成功
alertType.value = 'success'
handleDone() handleDone()
} else {
alertType.value = 'error'
text.value = result.message
} }
} catch (e) { } catch (e) {
console.error(e) console.error(e)
@@ -80,7 +75,7 @@ async function handleReset() {
</VCardText> </VCardText>
<VCardActions> <VCardActions>
<VSpacer /> <VSpacer />
<VBtn variant="elevated" @click="handleReset" prepend-icon="mdi-restore" class="px-5 me-3"> <VBtn variant="tonal" color="error" @click="handleReset" prepend-icon="mdi-restore" class="px-5 me-3">
{{ t('dialog.rcloneConfig.reset') }} {{ t('dialog.rcloneConfig.reset') }}
</VBtn> </VBtn>
<VBtn variant="elevated" @click="handleDone" prepend-icon="mdi-check" class="px-5 me-3"> <VBtn variant="elevated" @click="handleDone" prepend-icon="mdi-check" class="px-5 me-3">
+1 -1
View File
@@ -124,7 +124,7 @@ onUnmounted(() => {
</VCardText> </VCardText>
<VCardActions> <VCardActions>
<VSpacer /> <VSpacer />
<VBtn variant="elevated" @click="handleReset" prepend-icon="mdi-restore" class="px-5 me-3"> <VBtn variant="tonal" color="error" @click="handleReset" prepend-icon="mdi-restore" class="px-5 me-3">
{{ t('dialog.u115Auth.reset') }} {{ t('dialog.u115Auth.reset') }}
</VBtn> </VBtn>
<VBtn variant="elevated" @click="handleDone" prepend-icon="mdi-check" class="px-5 me-3"> <VBtn variant="elevated" @click="handleDone" prepend-icon="mdi-check" class="px-5 me-3">
+2 -7
View File
@@ -87,7 +87,7 @@ onBeforeUnmount(() => {
</VCardItem> </VCardItem>
<VDivider /> <VDivider />
<div class="notification-list-container"> <div class="notification-list-container">
<div v-if="notificationList.length > 0" class="notification-list"> <div v-if="notificationList.length > 0" class="h-full overflow-y-auto">
<VListItem v-for="(item, i) in notificationList" :key="i" lines="two" class="mb-1"> <VListItem v-for="(item, i) in notificationList" :key="i" lines="two" class="mb-1">
<template #prepend> <template #prepend>
<VAvatar rounded> <VAvatar rounded>
@@ -120,12 +120,7 @@ onBeforeUnmount(() => {
<style scoped> <style scoped>
.notification-list-container { .notification-list-container {
max-height: 50vh;
overflow: hidden; overflow: hidden;
} max-block-size: 50vh;
.notification-list {
max-height: 100%;
overflow-y: auto;
} }
</style> </style>
-1
View File
@@ -1,7 +1,6 @@
/** @type {import('tailwindcss').Config} */ /** @type {import('tailwindcss').Config} */
module.exports = { module.exports = {
content: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}'], content: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}'],
important: true,
theme: { theme: {
extend: {}, extend: {},
}, },