mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-11-13 04:33:44 +08:00
24 lines
367 B
TypeScript
24 lines
367 B
TypeScript
import { cloneDeep } from 'lodash-es';
|
|
|
|
export const genInfoObj = {
|
|
label: '',
|
|
name: '',
|
|
group: 1,
|
|
version: 'v1.0.0',
|
|
brief: '',
|
|
description: '',
|
|
author: '',
|
|
};
|
|
|
|
export const selectListObj = {
|
|
groupType: [],
|
|
status: [],
|
|
};
|
|
|
|
export function newState(state) {
|
|
if (state !== null) {
|
|
return cloneDeep(state);
|
|
}
|
|
return cloneDeep(genInfoObj);
|
|
}
|