Skip to content

Commit

Permalink
some fix front
Browse files Browse the repository at this point in the history
  • Loading branch information
Dariiiii committed Dec 11, 2024
1 parent d52fab9 commit 1b1f38e
Show file tree
Hide file tree
Showing 5 changed files with 469 additions and 20 deletions.
1 change: 1 addition & 0 deletions backend/app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
class Config:
SECRET_KEY = os.getenv("SECRET_KEY", "supersecret")
MONGO_URI = os.getenv("MONGO_URI", "mongodb://db:27017/credit_database")
# MONGO_URI = os.getenv("MONGO_URI", "mongodb://127.0.0.1:27017/credit_database")
11 changes: 8 additions & 3 deletions frontend/src/views/admin/Main.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
<template>
<div class="main-container">
<h1>Добро пожаловать, admin!</h1>
<h1>Добро пожаловать, {{ userName }}!</h1>
<h2>У вас есть непросмотренные заявки!</h2>
<h2>Вы можете посмотреть их здесь.</h2>
<h2>Вы можете посмотреть их <a href="/admin/request">здесь</a>.</h2>
</div>
</template>

<script>
export default {
name: 'AdminMain'
name: 'AdminMain',
computed: {
userName() {
return localStorage.getItem('userName') || 'Админ';
}
}
};
</script>

Expand Down
Loading

0 comments on commit 1b1f38e

Please sign in to comment.