mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18:11 +00:00
14 lines
323 B
TypeScript
14 lines
323 B
TypeScript
import { defineComponent } from 'vue';
|
|
|
|
export default defineComponent({
|
|
methods: {
|
|
getIcon(name: string, ext = 'svg') {
|
|
return new URL(`../assets/icon-${name}.${ext}`, import.meta.url).href;
|
|
},
|
|
|
|
getImage(name: string) {
|
|
return new URL(`../assets/${name}`, import.meta.url).href;
|
|
}
|
|
},
|
|
});
|