Skip to content
  • This project
    • Loading...
  • Sign in

刘伟 / shifangcloud

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • shifangcloud
  • yly-first
  • cms
  • filter.js
  • 刘伟's avatar
    十方供应链云前端初始化 · 8c1f91c2
    刘伟 committed 2025-08-25 15:45:49 +0800
    8c1f91c2
filter.js 243 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13
module.exports = function (Vue) {

  Vue.filter('html', function (val,length) {
  	var temp=val+" "
    temp = temp.replace(/<\/?[^>]*>/g, "");
    if(length && length>0){
    	temp=temp.substr(0,length)+'...'
    }
    return temp;
  });


};