18 lines
309 B
JavaScript
18 lines
309 B
JavaScript
import { defineStore } from 'pinia';
|
|
|
|
export const useSettingStore = defineStore({
|
|
id: 'settingStore',
|
|
state: () => ({
|
|
isReload: true,
|
|
}),
|
|
getters: {},
|
|
actions: {
|
|
setReload() {
|
|
this.isReload = false;
|
|
setTimeout(() => {
|
|
this.isReload = true;
|
|
}, 50);
|
|
},
|
|
},
|
|
});
|