front public 이미지 경로 변경
All checks were successful
LocalNet_front/pipeline/head This commit looks good

This commit is contained in:
nevermoregb 2025-03-13 19:03:43 +09:00
parent dabeac68c1
commit 09a665d079

View File

@ -5,7 +5,7 @@
for="profilePic"
class="rounded-circle m-auto ui-bg-cover position-relative cursor-pointer"
id="profileLabel"
style="width: 100px; height: 100px; background-image: url(public/img/avatars/default-Profile.jpg); background-repeat: no-repeat;"
style="width: 100px; height: 100px; background-image: url(img/avatars/default-Profile.jpg); background-repeat: no-repeat"
>
</label>
@ -162,7 +162,7 @@
<script setup>
import { ref } from 'vue';
import $api from '@api';
import commonApi from '@/common/commonApi'
import commonApi from '@/common/commonApi';
import UserFormInput from '@c/input/UserFormInput.vue';
import FormSelect from '@c/input/FormSelect.vue';
import ArrInput from '@c/input/ArrInput.vue';
@ -209,7 +209,6 @@
const toastStore = useToastStore();
//
const profileValid = (size, type) => {
const maxSize = 5 * 1024 * 1024;
@ -238,7 +237,7 @@
// ,
if (!profileValid(file.size, file.type)) {
e.target.value = '';
profileLabel.style.backgroundImage = 'url("public/img/avatars/default-Profile.jpg")';
profileLabel.style.backgroundImage = 'url("img/avatars/default-Profile.jpg")';
return false;
}
@ -275,13 +274,14 @@
// , mbti,
const { colorList, mbtiList, pwhintList } = commonApi({
loadColor: true, colorType: 'YON',
loadColor: true,
colorType: 'YON',
loadMbti: true,
loadPwhint: true,
});
//
const handleAddressUpdate = (addressData) => {
const handleAddressUpdate = addressData => {
address.value = addressData.address;
detailAddress.value = addressData.detailAddress;
postcode.value = addressData.postcode; //
@ -311,18 +311,16 @@
}
};
const handleColorUpdate = async (newColor) => {
const handleColorUpdate = async newColor => {
color.value = newColor;
colorError.value = '';
colorErrorAlert.value = false;
await checkColorDuplicate();
}
};
//
const handleSubmit = async () => {
await checkColorDuplicate();
idAlert.value = id.value.trim() === '';
@ -343,9 +341,21 @@
profilAlert.value = false;
}
if (profilAlert.value || idAlert.value || idErrorAlert.value || passwordAlert.value || passwordcheckAlert.value ||
passwordcheckErrorAlert.value || pwhintResAlert.value || nameAlert.value || birthAlert.value ||
addressAlert.value || phoneAlert.value || phoneErrorAlert.value || colorErrorAlert.value) {
if (
profilAlert.value ||
idAlert.value ||
idErrorAlert.value ||
passwordAlert.value ||
passwordcheckAlert.value ||
passwordcheckErrorAlert.value ||
pwhintResAlert.value ||
nameAlert.value ||
birthAlert.value ||
addressAlert.value ||
phoneAlert.value ||
phoneErrorAlert.value ||
colorErrorAlert.value
) {
return;
}
@ -372,4 +382,3 @@
}
};
</script>