vue打包后供运维人员配置
目录
vue打包后供运维人员配置
方便部署人员配置md5加密
public文件打包不会乱
所以新建pas.js文件
ismd5 = false;
public里的index页面引入
在需要页面引用
data里声明 window: window,然后函数里取值
userLogin({
username: this.info.username,
password: this.window.ismd5? this.$md5(this.info.password):this.info.password,
ticket: this.captchaVerification,
})
打包之后还可以由运维人员修改配置