mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 21:38:13 +00:00
Migracja na Vite
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
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;
|
||||
}
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user