From ef8d46aa6416570c2a52f2f9659b32816b34d06b Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Mon, 25 Jul 2022 12:42:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=88=B0R=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/jianrTask.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/web/jianrTask.html b/web/jianrTask.html index b0bb701..22eb80a 100644 --- a/web/jianrTask.html +++ b/web/jianrTask.html @@ -54,7 +54,7 @@ maxlength: 99999, area: ['800px', '350px'] //自定义文本域宽高 }, function (value, index, elem) { - $.post("http://127.0.0.1:8002/jianr/task/add.do", {task: value}, function (json) { + $.post("/jianr/task/add.do", {task: value}, function (json) { layer.msg(json.msg) }) layer.close(index); @@ -62,24 +62,24 @@ } function runTask(name) { - $.post("http://127.0.0.1:8002/jianr/run.do", {task: name}, function (json) { + $.post("/jianr/run.do", {task: name}, function (json) { layer.msg(json.msg) }) } function stopTask() { - $.post("http://127.0.0.1:8002/jianr/stop.do", function (json) { + $.post("/jianr/stop.do", function (json) { layer.msg(json.msg) }) } function removeTask(name) { - $.post("http://127.0.0.1:8002/jianr/task/remove.do", {task: name}, function (json) { + $.post("/jianr/task/remove.do", {task: name}, function (json) { layer.msg(json.msg) }) } function getStatus() { - $.post("http://127.0.0.1:8002/jianr/status.do", function (json) { + $.post("/jianr/status.do", function (json) { if(json.data.status){ $('#taskStatus')[0].innerHTML="运行" $('#taskStatus').css('color','#5C962C') @@ -95,7 +95,7 @@ }) } window.onload = function init() { - $.get("http://127.0.0.1:8002/jianr/task/list.do", function (json) { + $.get("/jianr/task/list.do", function (json) { json.data.forEach(function (item) { createCard(item) }