From e5fd1405da2bbdd54cc12a43cf41ff768b2e5fc4 Mon Sep 17 00:00:00 2001 From: zclzone Date: Thu, 13 Mar 2025 10:29:17 +0800 Subject: [PATCH] style: lint fix --- src/utils/storage/index.js | 4 ++-- src/views/base/index.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 @@