detail.js 793 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. itemType: '',
  13. })
  14. const adminInfo = ref({
  15. adminId : '',
  16. pageType : ''
  17. })
  18. function reset() {
  19. menuInfo.value = {
  20. menuIndex : '0',
  21. menuId : 'menu02',
  22. pageRtName : '미디어 관리',
  23. pageStatus : '0',
  24. }
  25. boardInfo.value = {
  26. seq : '',
  27. pageType : '',
  28. status: '',
  29. }
  30. adminInfo.value = {
  31. adminId : '',
  32. pageType : ''
  33. }
  34. }
  35. return {menuInfo, boardInfo, adminInfo, reset}
  36. }, {persist: { storage: persistedState.sessionStorage,}})