mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-25 14:44:49 +02:00
🐛 Fixes local image path on sub-page (#570)
This commit is contained in:
parent
a9ae53ef7c
commit
1c85d454b9
@ -45,11 +45,11 @@ export default {
|
|||||||
return this.$store.getters.appConfig;
|
return this.$store.getters.appConfig;
|
||||||
},
|
},
|
||||||
/* Determines the type of icon */
|
/* Determines the type of icon */
|
||||||
iconType: function iconType() {
|
iconType() {
|
||||||
return this.determineImageType(this.icon);
|
return this.determineImageType(this.icon);
|
||||||
},
|
},
|
||||||
/* Gets the icon path, dependent on icon type */
|
/* Gets the icon path, dependent on icon type */
|
||||||
iconPath: function iconPath() {
|
iconPath() {
|
||||||
if (this.broken) return this.getFallbackIcon();
|
if (this.broken) return this.getFallbackIcon();
|
||||||
return this.getIconPath(this.icon, this.url);
|
return this.getIconPath(this.icon, this.url);
|
||||||
},
|
},
|
||||||
@ -176,7 +176,7 @@ export default {
|
|||||||
},
|
},
|
||||||
/* Fetches the path of local images, from Docker container */
|
/* Fetches the path of local images, from Docker container */
|
||||||
getLocalImagePath(img) {
|
getLocalImagePath(img) {
|
||||||
return `${iconCdns.localPath}/${img}`;
|
return `/${iconCdns.localPath}/${img}`;
|
||||||
},
|
},
|
||||||
/* Formats the URL for fetching the generative icons */
|
/* Formats the URL for fetching the generative icons */
|
||||||
getGenerativeIcon(url, cdn) {
|
getGenerativeIcon(url, cdn) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user