Manage display of book covers
This commit is contained in:
@@ -3,6 +3,11 @@ import { useAuthStore } from './auth.store.js'
|
||||
|
||||
const baseUrl = "http://localhost:8080"
|
||||
|
||||
export function getImagePathOrDefault(path) {
|
||||
return (path == "" || typeof path === 'undefined') ?
|
||||
"../defaultbook.png" : "http://localhost:8080" + path;
|
||||
}
|
||||
|
||||
function useFetch(url) {
|
||||
const data = ref(null);
|
||||
const error = ref(null);
|
||||
|
||||
Reference in New Issue
Block a user