Gitlab@Informatics

Skip to content
Snippets Groups Projects
Commit f4da665c authored by 65160206's avatar 65160206
Browse files

employee image from backend docker

parent e69022b6
No related branches found
No related tags found
No related merge requests found
Pipeline #659 canceled
# .env.docker (ใช้ตอนรันใน Docker หรือ production)
VITE_EMP_IMAGE_BASE=http://dekdee3.informatics.buu.ac.th:8012/images/emp/
......@@ -8,7 +8,7 @@ export const useEmployeeStore = defineStore('employee', () => {
const loading = ref<boolean>(false)
const error = ref<string | null>(null)
const IMAGE_BASE_URL = 'http://localhost:4000/images/emp/'
const IMAGE_BASE_URL = import.meta.env.VITE_EMP_IMAGE_BASE || ''
const FALLBACK_IMAGE = '/images/noimage.jpg'
// ✅ ดึงรายการ Employee ทั้งหมดจาก backend และแปะ path รูป
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment