9 lines
226 B
TypeScript
9 lines
226 B
TypeScript
export const useTitleStore = defineStore('title', () => {
|
|
const title = ref<string | undefined>();
|
|
|
|
return { title };
|
|
});
|
|
if (import.meta.hot) {
|
|
import.meta.hot.accept(acceptHMRUpdate(useTitleStore, import.meta.hot));
|
|
}
|