From a88513e6746e7e29afead83e9c80c71d52b88f84 Mon Sep 17 00:00:00 2001 From: "xuyutong.1998" Date: Fri, 19 Jul 2024 00:55:41 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=20=E4=BF=AE=E5=A4=8D=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96=E7=8A=B6=E6=80=81=E4=B8=8B=E4=B8=BB=E9=A1=B5=E7=BD=91?= =?UTF-8?q?=E5=9D=80=E8=BE=93=E5=85=A5=E6=A1=86=E6=8F=90=E7=A4=BA=E8=AF=8D?= =?UTF-8?q?=E4=B8=A2=E5=A4=B1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/oper.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/oper.js b/js/oper.js index 4fb6585..75bff8a 100644 --- a/js/oper.js +++ b/js/oper.js @@ -23,9 +23,6 @@ function get_info(callback) { flag = true } returnObject.status = flag - if (!items.apiUrl.endsWith('/')) { - items.apiUrl += '/'; - } returnObject.apiUrl = items.apiUrl returnObject.apiTokens = items.apiTokens returnObject.hidetag = items.hidetag @@ -212,6 +209,9 @@ function uploadImage(data) { $('#saveKey').click(function () { var apiUrl = $('#apiUrl').val() + if (apiUrl.length > 0 && !apiUrl.endsWith('/')) { + apiUrl += '/'; + } var apiTokens = $('#apiTokens').val() // 设置请求参数 const settings = {