feat(deps): 添加tauri打包(遗留pnpm build:file打包好的文件跨域无法访问) #94

This commit is contained in:
log1997
2025-12-09 17:52:56 +08:00
parent 2f0e3ac05b
commit f5152da190
30 changed files with 5714 additions and 659 deletions

View File

@@ -1,6 +1,7 @@
import type { IPersonConfig, IPrizeConfig } from '@/types/storeType'
import dayjs from 'dayjs'
import { defineStore } from 'pinia'
import { v4 as uuidv4 } from 'uuid'
import { computed, ref, toRaw, watch } from 'vue'
import { IndexDb } from '@/utils/dexie'
import { defaultPersonList } from './data'
@@ -150,7 +151,10 @@ export const usePersonConfig = defineStore('person', () => {
personDb.deleteAll('alreadyPersonList')
}
function setDefaultPersonList() {
personConfig.value.allPersonList = defaultPersonList
personConfig.value.allPersonList = defaultPersonList.map((item: any) => {
item.uuid = uuidv4()
return item
})
personConfig.value.alreadyPersonList = []
personDb.setAllData('allPersonList', defaultPersonList)
personDb.deleteAll('alreadyPersonList')