This commit is contained in:
AllenFang
2019-08-10 14:51:26 +08:00
parent 27387c2a69
commit 08ec8a9f65

View File

@@ -1,7 +1,7 @@
import Const from '../const';
export const typeConvert = (type, value) => {
if (!type || type === Const.TYPE_STRING) {
if (type === Const.TYPE_STRING) {
return String(value);
} else if (type === Const.TYPE_NUMBER) {
return Number(value);