Check.js 363 Bytes
Newer Older
1 2 3 4 5 6
import Utils from "~/utils"

/**
* Litcan Check规则
*/
let checkObj = {
wangren committed
7 8
    "sndmsg"                      :null,
    "litcanf.strinf"                      :null,
9 10 11 12 13 14 15 16 17
}

for (const key in checkObj) {
    if (Object.hasOwnProperty.call(checkObj, key)) {
        checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
    }
}
export default checkObj