Commit 75ca4cc3 authored by leon's avatar leon

feat: remove eval

parent 4eeb712e
This source diff could not be displayed because it is too large. You can view the blob instead.
import { Function } from '../static/plugin/eval5/eval5.js'
// import { Function } from '../static/plugin/eval5/eval5.js'
const install = (Vue, vm) => {
/**
* 数据转换
*/
const converFunction = (func, data) => {
if(!func) return
return new Function('"use strict";return (' + func + ')')()(data);
}
// const converFunction = (func, data) => {
// if(!func) return
// return new Function('"use strict";return (' + func + ')')()(data);
// }
/**
* 补足数字位数
......@@ -100,7 +100,7 @@ const install = (Vue, vm) => {
}
vm.$u.common = {
converFunction,
// converFunction,
fillDigit,
toThousands,
dateFormat,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment