项目初始化
This commit is contained in:
63
web/src/views/backend/module/store.ts
Normal file
63
web/src/views/backend/module/store.ts
Normal file
@@ -0,0 +1,63 @@
|
||||
import { reactive } from 'vue'
|
||||
import { uuid } from '/@/utils/random'
|
||||
import type { moduleState } from './types'
|
||||
|
||||
export const state = reactive<moduleState>({
|
||||
loading: {
|
||||
buy: false,
|
||||
table: true,
|
||||
common: false,
|
||||
install: false,
|
||||
goodsInfo: false,
|
||||
},
|
||||
dialog: {
|
||||
buy: false,
|
||||
pay: false,
|
||||
common: false,
|
||||
goodsInfo: false,
|
||||
baAccount: false,
|
||||
},
|
||||
table: {
|
||||
remark: '',
|
||||
modules: [],
|
||||
modulesEbak: [],
|
||||
category: [],
|
||||
onlyLocal: false,
|
||||
indexLoaded: false,
|
||||
params: {
|
||||
quickSearch: '',
|
||||
activeTab: 'all',
|
||||
},
|
||||
},
|
||||
payInfo: {},
|
||||
goodsInfo: {},
|
||||
buy: {
|
||||
info: {},
|
||||
renew: false,
|
||||
agreement: true,
|
||||
},
|
||||
common: {
|
||||
uid: '',
|
||||
moduleState: 0,
|
||||
quickClose: false,
|
||||
type: 'loading',
|
||||
dialogTitle: '',
|
||||
fileConflict: [],
|
||||
dependConflict: [],
|
||||
loadingTitle: 'init',
|
||||
loadingComponentKey: uuid(),
|
||||
waitInstallDepend: [],
|
||||
dependInstallState: 'none',
|
||||
disableConflictFile: [],
|
||||
disableDependConflict: [],
|
||||
disableParams: {},
|
||||
payType: 'wx',
|
||||
update: false,
|
||||
versions: [],
|
||||
},
|
||||
sysVersion: '',
|
||||
nuxtVersion: '',
|
||||
installedModule: [],
|
||||
installedModuleUids: [],
|
||||
installedModuleVersions: [],
|
||||
})
|
||||
Reference in New Issue
Block a user