Files
AlgerMusicPlayer/src/renderer/store/modules/lyric.ts
T

16 lines
267 B
TypeScript
Raw Normal View History

2025-03-19 22:48:28 +08:00
import { defineStore } from 'pinia';
import { ref } from 'vue';
export const useLyricStore = defineStore('lyric', () => {
const lyric = ref({});
const setLyric = (newLyric: any) => {
lyric.value = newLyric;
};
return {
lyric,
setLyric
};
});