diff --git a/src/utils/storage/index.js b/src/utils/storage/index.js index f173867..03d9c7c 100644 --- a/src/utils/storage/index.js +++ b/src/utils/storage/index.js @@ -11,14 +11,14 @@ import { createStorage } from './storage' const prefixKey = 'vue-naive-admin_' -export const createLocalStorage = function (option = {}) { +export function createLocalStorage(option = {}) { return createStorage({ prefixKey: option.prefixKey || '', storage: localStorage, }) } -export const createSessionStorage = function (option = {}) { +export function createSessionStorage(option = {}) { return createStorage({ prefixKey: option.prefixKey || '', storage: sessionStorage, diff --git a/src/views/base/index.vue b/src/views/base/index.vue index d768f38..bb72c4c 100644 --- a/src/views/base/index.vue +++ b/src/views/base/index.vue @@ -98,7 +98,7 @@