modified: begushiybashkir/bbvue/src/views/Gallery.vue

modified:   begushiybashkir/bbvue/vite.config.js
set public path
This commit is contained in:
2025-10-07 04:09:50 +05:00
parent 5dd4597686
commit 400a95786d
2 changed files with 2 additions and 1 deletions
@@ -265,6 +265,7 @@ export default {
// В продакшене замените на правильный путь // В продакшене замените на правильный путь
const baseUrl = import.meta.env.BASE_URL const baseUrl = import.meta.env.BASE_URL
// Путь от корня public/ // Путь от корня public/
console.log(`${baseUrl}images/${path}`)
return `${baseUrl}images/${path}` return `${baseUrl}images/${path}`
}, },
nextSlide() { nextSlide() {
+1 -1
View File
@@ -12,7 +12,7 @@ export default defineConfig({
], ],
resolve: { resolve: {
alias: { alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)) '@': fileURLToPath(new URL('./', import.meta.url))
}, },
}, },
server: { server: {