步骤 1.npm安装 npm install --save js-sha1 2.引入 let sha1 = require(‘js-sha1’); //引入sha1加密文件 3.加密 his.see.userPassword = sha1(this.see.userPassword);