diff --git a/xroom-dashboard/src/App.vue b/xroom-dashboard/src/App.vue index 6ca61d9..609fac0 100644 --- a/xroom-dashboard/src/App.vue +++ b/xroom-dashboard/src/App.vue @@ -1,26 +1,43 @@ @@ -75,4 +92,22 @@ router-view { * { font-family: 'IRANSans', sans-serif !important; } + +.dashboard-page { + margin-right: 20rem; + padding: 20px; + direction: rtl; + font-family: IRANSansXFaNum, sans-serif; +} + +.content { + background-color: #f8f9fa; + border-radius: 20px; + padding: 35px 80px !important; + display: flex; + flex-direction: column; + gap: 32px; +} + + \ No newline at end of file diff --git a/xroom-dashboard/src/components/NewFileDialog.vue b/xroom-dashboard/src/components/NewFileDialog.vue index c5a3056..bbc5c3a 100644 --- a/xroom-dashboard/src/components/NewFileDialog.vue +++ b/xroom-dashboard/src/components/NewFileDialog.vue @@ -209,6 +209,11 @@ export default { this.$emit('upload-success'); this.$emit('close'); alert('فایل با موفقیت آپلود شد'); + + // بررسی مسیر فعلی و هدایت به /dashboard/files در صورت نیاز + if (this.$route.path !== '/dashboard/files') { + this.$router.push('/dashboard/files'); + } } catch (error) { console.error('Error uploading file:', error); alert('خطا در آپلود فایل'); diff --git a/xroom-dashboard/src/pages/dashboard/ChangeAvatar.vue b/xroom-dashboard/src/pages/dashboard/ChangeAvatar.vue index 63f2b19..168d158 100644 --- a/xroom-dashboard/src/pages/dashboard/ChangeAvatar.vue +++ b/xroom-dashboard/src/pages/dashboard/ChangeAvatar.vue @@ -1,25 +1,21 @@