File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 11<script setup>
22import axios from ' axios'
33import Input from ' @/components/input/Input.vue'
4+ import avatar from ' ./profil/avatar.png'
45import { toRefs } from ' vue'
56
67const props = defineProps ({
7- image: { default: ' https://i.pravatar.cc/128 ' },
8+ image: { default: avatar },
89 label: { default: ' Select image' },
910 remove_avatar_url: { default: ' web/api/remove/avatar' },
1011 remove_success: { default: ' Avatar removed.' },
@@ -23,6 +24,7 @@ function getImagePath(e) {
2324async function removeAvatar () {
2425 try {
2526 await axios .get (props .remove_avatar_url )
27+ image .value = avatar
2628 alert (props .remove_success )
2729 } catch (err) {
2830 alert (props .remove_error )
@@ -92,3 +94,5 @@ async function removeAvatar() {
9294 border : 2px solid var (--wow-accent );
9395}
9496 </style >
97+
98+ <!-- Avatars https://i.pravatar.cc/128 -->
You can’t perform that action at this time.
0 commit comments