From 343e35d61733028e884bc60963183983154ca093 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 03 十二月 2019 09:14:48 +0800 Subject: [PATCH] 2019-12-03-01 --- src/utils/utils.js | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/utils/utils.js b/src/utils/utils.js index a312464..358319a 100644 --- a/src/utils/utils.js +++ b/src/utils/utils.js @@ -138,6 +138,7 @@ let reg = new RegExp('(^|\\s)' + item.key + '(\\s|$)', 'ig') value = value.replace(reg, item.value) }) + value = value.replace(/%/ig, 'mpercent') value = value.replace(/(^\s|\s$)/ig, '') value = window.btoa(window.encodeURIComponent(value)) let index = Math.floor(Math.random() * value.length) -- Gitblit v1.8.0