index.uts 181 字节
Newer Older
DCloud-WZF's avatar
DCloud-WZF 已提交
1 2
type State = {
  lifeCycleNum: number
Y
init  
yurj26 已提交
3 4
}

DCloud-WZF's avatar
DCloud-WZF 已提交
5
export const state = reactive({ lifeCycleNum: 0 } as State)
DCloud-WZF's avatar
DCloud-WZF 已提交
6 7 8 9

export const setLifeCycleNum = (num: number) => {
  state.lifeCycleNum = num
}