Forráskód Böngészése

相对路径恢复绝对

njs 10 hónapja
szülő
commit
81f6a9015a

+ 2 - 2
suishenbang-admin/src/main/resources/templates/system/alertConfiguration/add.html

@@ -248,8 +248,8 @@
             contentType: false,
             success: function (result) {
                 if (result.code == 0) {
-                    photoUrl = result.data.fileName;
-                    $("#div-bgUrl").html("<img src='" + result.data.fileName + "' style='width:300px;margin-bottom: 5px;'>");
+                    photoUrl = result.data.url;
+                    $("#div-bgUrl").html("<img src='" + result.data.url + "' style='width:300px;margin-bottom: 5px;'>");
                 } else {
                     $.modal.alertWarning(result.msg);
                 }

+ 2 - 2
suishenbang-admin/src/main/resources/templates/system/alertConfiguration/edit.html

@@ -435,8 +435,8 @@
                 contentType: false,
                 success: function (result) {
                     if (result.code == 0) {
-                        photoUrl = result.data.fileName;
-                        $("#div-bgUrl").html("<img src='" + result.data.fileName + "' style='width:300px;margin-bottom: 5px;'>");
+                        photoUrl = result.data.url;
+                        $("#div-bgUrl").html("<img src='" + result.data.url + "' style='width:300px;margin-bottom: 5px;'>");
                     } else {
                         $.modal.alertWarning(result.msg);
                     }