detail.js 775 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. export const useDetailStore = defineStore('detailStore', () => {
  2. const menuInfo = ref({
  3. menuIndex : '0',
  4. menuId : 'menu02',
  5. pageRtName : '미디어 관리',
  6. pageStatus : '0',
  7. })
  8. const boardInfo = ref({
  9. seq : '',
  10. pageType : '',
  11. status: '',
  12. })
  13. const adminInfo = ref({
  14. adminId : '',
  15. pageType : ''
  16. })
  17. function reset() {
  18. menuInfo.value = {
  19. menuIndex : '0',
  20. menuId : 'menu02',
  21. pageRtName : '미디어 관리',
  22. pageStatus : '0',
  23. }
  24. boardInfo.value = {
  25. seq : '',
  26. pageType : '',
  27. status: '',
  28. }
  29. adminInfo.value = {
  30. adminId : '',
  31. pageType : ''
  32. }
  33. }
  34. return {menuInfo, boardInfo, adminInfo, reset}
  35. }, {persist: { storage: persistedState.sessionStorage,}})