From bb0507080686a70d9f9a3a13cf87b6ba1720b57f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A3=AE=E5=A3=AE?= <18264315@qq.com> Date: Mon, 22 Jan 2024 02:04:57 +0000 Subject: [PATCH] =?UTF-8?q?update=20component/pear/module/admin.js.=20?= =?UTF-8?q?=E5=8E=9F=E5=85=88=E6=97=A7=E7=9A=84=20this.configurationPath.i?= =?UTF-8?q?ndexOf("json")=20>=20-1=20=E5=8F=AA=E8=80=83=E8=99=91=E4=BA=86?= =?UTF-8?q?=20=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=20=E6=98=AF=20.json=20?= =?UTF-8?q?=E5=92=8C=20.yml=E4=B8=A4=E7=A7=8D=E6=A0=BC=E5=BC=8F=EF=BC=8C?= =?UTF-8?q?=E8=BF=98=E6=9C=89api=E6=A0=BC=E5=BC=8F=EF=BC=8C=E5=A6=82?= =?UTF-8?q?=E6=9E=9C=E7=94=A8=20api=20=E6=A0=BC=E5=BC=8F=20=E8=B5=B0?= =?UTF-8?q?=E7=9A=84=E6=98=AF=20yml=20=E7=9A=84=E8=AF=9D=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E7=9A=84=E4=B8=AD=E6=96=87=E4=BC=9A=E4=B9=B1=E7=A0=81=EF=BC=8C?= =?UTF-8?q?=E6=89=80=E6=9C=89=E6=94=B9=E6=88=90=20=E4=B8=8D=E6=98=AF=20yml?= =?UTF-8?q?=20=E8=B5=B0json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 壮壮 <18264315@qq.com> --- component/pear/module/admin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component/pear/module/admin.js b/component/pear/module/admin.js index 450fbbf..02a11ff 100644 --- a/component/pear/module/admin.js +++ b/component/pear/module/admin.js @@ -34,7 +34,7 @@ layui.define(['jquery', 'tools', 'element', 'yaml', 'form', 'tabPage', 'menu', ' */ this.configurationProvider = () => { return new Promise((resolve) => { - if (this.configurationPath.indexOf("json") > -1) { + if (this.configurationPath.indexOf("yml") == -1) { $.ajax({ type: 'get', url: this.configurationPath, -- Gitee