modified: serv_nginx/bbvue/src/views/Profile.vue
upload avatar delete from profile page
This commit is contained in:
@@ -15,7 +15,6 @@
|
|||||||
👤
|
👤
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<AvatarUpload :user="user" @avatar-updated="onAvatarUpdated" />
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2>{{ user.firstName }} {{ user.lastName }}</h2>
|
<h2>{{ user.firstName }} {{ user.lastName }}</h2>
|
||||||
@@ -196,14 +195,10 @@
|
|||||||
<script>
|
<script>
|
||||||
import { useAuthStore } from '../stores/auth'
|
import { useAuthStore } from '../stores/auth'
|
||||||
import { useUserStore } from '../stores/user'
|
import { useUserStore } from '../stores/user'
|
||||||
import AvatarUpload from '../components/AvatarUpload.vue'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
// eslint-disable-next-line vue/multi-word-component-names
|
// eslint-disable-next-line vue/multi-word-component-names
|
||||||
name: 'Profile',
|
name: 'Profile',
|
||||||
components: {
|
|
||||||
AvatarUpload
|
|
||||||
},
|
|
||||||
setup() {
|
setup() {
|
||||||
const authStore = useAuthStore()
|
const authStore = useAuthStore()
|
||||||
const userStore = useUserStore()
|
const userStore = useUserStore()
|
||||||
|
|||||||
Reference in New Issue
Block a user