modified: begushiybashkir/bbvue/src/views/Gallery.vue
modified: begushiybashkir/bbvue/vite.config.js set public path
This commit is contained in:
@@ -265,6 +265,7 @@ export default {
|
||||
// В продакшене замените на правильный путь
|
||||
const baseUrl = import.meta.env.BASE_URL
|
||||
// Путь от корня public/
|
||||
console.log(`${baseUrl}images/${path}`)
|
||||
return `${baseUrl}images/${path}`
|
||||
},
|
||||
nextSlide() {
|
||||
|
||||
@@ -12,7 +12,7 @@ export default defineConfig({
|
||||
],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': fileURLToPath(new URL('./src', import.meta.url))
|
||||
'@': fileURLToPath(new URL('./', import.meta.url))
|
||||
},
|
||||
},
|
||||
server: {
|
||||
|
||||
Reference in New Issue
Block a user