/* * @Author: your name * @Date: 2022-02-25 17:07:40 * @LastEditTime: 2022-02-26 20:59:40 * @LastEditors: Please set LastEditors * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @FilePath: /newDev/gassafety-progress/gassafetyprogress-web/src/directive/permission/hasValue.js */ /** * 无内容显示- * Copyright (c) 2021 gassafety */ export default { inserted(el, binding, vnode) { el.innerHTML = el.innerHTML.replace(/\s+/g, "") ? el.innerHTML : "-"; } };