[상태 관리 개선] Pinia 플러그인에 로컬 스토리지 설정 추가 및 권한 스토어에서 permissions 반환 방식을 간소화함

This commit is contained in:
sohot8653
2025-09-24 19:52:12 +09:00
parent c0a54bb64c
commit cb22e3904a
2 changed files with 4 additions and 1 deletions

View File

@@ -10,6 +10,9 @@ export default defineNuxtConfig({
"pinia-plugin-persistedstate/nuxt",
"@nuxtjs/tailwindcss",
],
piniaPluginPersistedstate: {
storage: 'localStorage',
},
app: {
head: {
link: [

View File

@@ -95,7 +95,7 @@ export const usePermissionsStore = defineStore(
};
return {
permissions: readonly(permissions),
permissions,
fetchPermissions,
clearPermissions,