1
0
mirror of https://github.com/zclzone/vue-naive-admin.git synced 2025-12-28 12:10:20 +08:00

style: lint

This commit is contained in:
zclzone
2024-06-06 18:05:36 +08:00
parent 98f9d5893a
commit a67510fe34
72 changed files with 542 additions and 389 deletions

View File

@@ -7,7 +7,7 @@
**********************************/
const lastDataMap = new Map()
export const useAliveData = (initData = {}, key) => {
export function useAliveData(initData = {}, key) {
key = key ?? useRoute().name
const lastData = lastDataMap.get(key)
const aliveData = ref(lastData || { ...initData })
@@ -17,7 +17,7 @@ export const useAliveData = (initData = {}, key) => {
(v) => {
lastDataMap.set(key, v)
},
{ deep: true }
{ deep: true },
)
return {