Commit ba0940ce authored by 李苏's avatar 李苏 💬

过滤筛选

parent 9c7a817c
...@@ -21,7 +21,12 @@ Vue.prototype.$config=configService; ...@@ -21,7 +21,12 @@ Vue.prototype.$config=configService;
// 正则表达式去除字符串空格 // 正则表达式去除字符串空格
Vue.prototype.$trim=function Trim(str) Vue.prototype.$trim=function Trim(str)
{ {
return str.replace(/\s/g,"") if(typeof str === 'string'){
return str.replace(/\s/g,"")
}else{
return str
}
} }
// request请求 // request请求
import { http } from '@/common/service/service.js' import { http } from '@/common/service/service.js'
......
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