Commit 2f07808d by liuyong

修改三个架构资产

1 parent ee1c7387
Showing with 6 additions and 0 deletions
...@@ -26,6 +26,12 @@ function decryptStringBySM4_CBC(str) {//使用sm4-cbc算法给字符串解密 ...@@ -26,6 +26,12 @@ function decryptStringBySM4_CBC(str) {//使用sm4-cbc算法给字符串解密
axios.interceptors.request.use(config => { axios.interceptors.request.use(config => {
// config.headers.token = JSON.parse(localStorage.getItem('token')).token; // config.headers.token = JSON.parse(localStorage.getItem('token')).token;
if(config.method == "post"){
let encryptString = encryptStringBySM4_CBC(JSON.stringify(config.data));
config.data = encryptString;
console.log(config.data);
}
return config; return config;
}, },
error => { error => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!