Commit 2c071741 by linjinhong

Merge remote-tracking branch 'origin/wusiyi/debug'

parents 454f5fdb 7447deb1
...@@ -188,17 +188,9 @@ export default { ...@@ -188,17 +188,9 @@ export default {
return res.json(data); return res.json(data);
} }
// 替换中文 // 转义中文
if (data.message) { if (data.message) {
data.message = data.message data.message = encodeURIComponent(data.message);
.replace(/正面/g, "A")
.replace(/反面/g, "B")
.replace(/正/g, "A")
.replace(/反/g, "B")
.replace(/前/g, "A")
.replace(/后/g, "B")
.replace(/B面/g, "B")
.replace(/A面/g, "A");
} }
let files = data.data || [data.message]; let files = data.data || [data.message];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment