Use some icons
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
6a904b705a
commit
fdf0919333
@ -0,0 +1,13 @@
|
||||
export function download(value: string, filename: string): void {
|
||||
const a = document.createElement('a');
|
||||
a.href = value;
|
||||
a.download = filename;
|
||||
a.click();
|
||||
a.remove();
|
||||
}
|
||||
|
||||
export function downloadBlob(blob: Blob, filename: string): void {
|
||||
const url = URL.createObjectURL(blob);
|
||||
download(url, filename);
|
||||
URL.revokeObjectURL(url);
|
||||
}
|
@ -1,7 +1,8 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import Icons from 'unplugin-icons/vite'
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [vue()],
|
||||
plugins: [vue(), Icons({ compiler: 'vue3' })],
|
||||
})
|
||||
|
Loading…
Reference in new issue