From 3f74011c98d44072894927390ad2d54d91027f21 Mon Sep 17 00:00:00 2001 From: mkg <1650473152@qq.com> Date: Thu, 22 Jul 2021 14:31:41 +0800 Subject: [PATCH] =?UTF-8?q?photo.html=E9=A1=B5=E9=9D=A2add=E5=85=B3?= =?UTF-8?q?=E9=97=AD=E5=BD=93=E5=89=8Dlayer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- applications/templates/file/photo.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/applications/templates/file/photo.html b/applications/templates/file/photo.html index 98b7623..c73f3ef 100644 --- a/applications/templates/file/photo.html +++ b/applications/templates/file/photo.html @@ -171,7 +171,7 @@ } window.add = function () { - layer.open({ + layer.open({ type: 1, maxmin: true, title: '新增图片', @@ -305,8 +305,8 @@ , done: function (res) { if (res.success) { layer.msg(res.msg, { icon: 1, time: 500 }, function () { - parent.layer.close(parent.layer.getFrameIndex(window.name))//关闭当前页 - window.parent.location.reload() + layer.close(layer.index)//关闭最新的layer + location.reload()//当前页面刷新 }) } else { layer.msg(res.msg, { icon: 2 })