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
|
const baseUrl = import.meta.env.BASE_URL
|
||||||
// Путь от корня public/
|
// Путь от корня public/
|
||||||
|
console.log(`${baseUrl}images/${path}`)
|
||||||
return `${baseUrl}images/${path}`
|
return `${baseUrl}images/${path}`
|
||||||
},
|
},
|
||||||
nextSlide() {
|
nextSlide() {
|
||||||
|
|||||||
@@ -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: {
|
||||||
|
|||||||
Reference in New Issue
Block a user