diff --git a/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js b/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js
index e8136c82b..7b81d1ce3 100644
--- a/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js
+++ b/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js
@@ -1233,8 +1233,7 @@ var table = {
seeSummernoteDetail: function(index,fild) {
table.set();
var row = $("#" + table.options.id).bootstrapTable('getData')[index];
- console.log(row)
- var content =window.atob(row[fild]);
+ var content = decodeURI(window.atob(row[fild]));
var htmlcontent = [
"
",
content,
diff --git a/ruoyi-generator/src/main/resources/vm/html/add.html.vm b/ruoyi-generator/src/main/resources/vm/html/add.html.vm
index 400cc6443..ffffae77e 100644
--- a/ruoyi-generator/src/main/resources/vm/html/add.html.vm
+++ b/ruoyi-generator/src/main/resources/vm/html/add.html.vm
@@ -156,10 +156,10 @@
@@ -261,7 +261,7 @@
callbacks: {
onChange: function (contents, $edittable) {
// Xss 过滤掉了html 内容 ,所以用base64 保存
- $("input[name='" + this.id + "']").val(window.btoa(contents))
+ $("input[name='" + this.id + "']").val(window.btoa(encodeURI(contents)));
}
}
diff --git a/ruoyi-generator/src/main/resources/vm/html/edit.html.vm b/ruoyi-generator/src/main/resources/vm/html/edit.html.vm
index 4eb1ef1a1..5c3a4255f 100644
--- a/ruoyi-generator/src/main/resources/vm/html/edit.html.vm
+++ b/ruoyi-generator/src/main/resources/vm/html/edit.html.vm
@@ -157,15 +157,14 @@
required#end>[[*{${field}}]]
-#elseif($column.htmlType == "upload" || $column.htmlType == "uploads")
+#elseif($column.htmlType == "upload")
@@ -182,18 +181,18 @@
#end
#end
#if($table.sub)
-
-
-
@@ -267,14 +266,14 @@
$(function () {
$('.summernote').each(function (i) {
var content = $("input[name='" + this.id + "']").val()
- content = window.atob(content);
+ content = decodeURI(window.atob(content));
this.innerHTML = content;
$(this).summernote({
height: 100,
lang: 'zh-CN',
callbacks: {
onChange: function (contents, $edittable) {
- $("input[name='" + this.id + "']").val(window.btoa(contents))
+ $("input[name='" + this.id + "']").val(window.btoa(encodeURI(contents)));
}
}
});