64 lines
1.4 KiB
TypeScript
64 lines
1.4 KiB
TypeScript
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: [],
|
|
})
|