From 88bd6794123c5c116c450406a0bf88715300d3a5 Mon Sep 17 00:00:00 2001 From: mrzhssss <pro6@qq.com> Date: 星期三, 26 一月 2022 08:26:25 +0800 Subject: [PATCH] 添加配置文件 --- src/main/webapp/static/js/config.js | 1 + src/main/webapp/static/js/tableData.js | 4 ++-- src/main/webapp/views/index_datashow.html | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/static/js/config.js b/src/main/webapp/static/js/config.js new file mode 100644 index 0000000..4fc28f8 --- /dev/null +++ b/src/main/webapp/static/js/config.js @@ -0,0 +1 @@ +var baseurl = 'http://192.168.4.57:8080'; \ No newline at end of file diff --git a/src/main/webapp/static/js/tableData.js b/src/main/webapp/static/js/tableData.js index 3b799e5..2205212 100644 --- a/src/main/webapp/static/js/tableData.js +++ b/src/main/webapp/static/js/tableData.js @@ -10,7 +10,7 @@ var proData = ["椤圭洰鍚嶇О","寮�濮嬫椂闂�","缁撴潫鏃堕棿",] var getTheaddData = function(){ $.ajax({ - url:'http://192.168.4.99:8080/pms/projectPlan/flowStatus', + url:baseurl+'/pms/projectPlan/flowStatus', type:'GET', dataType:'JSON', data:{}, @@ -35,7 +35,7 @@ /*****************************************************************************************************************************************************************************/ var getThbodyData = function(){ $.ajax({ - url:'http://192.168.4.99:8080/pms/projectPlan/toFront', + url:baseurl+'/pms/projectPlan/toFront', type:'GET', dataType:'JSON', data:{}, diff --git a/src/main/webapp/views/index_datashow.html b/src/main/webapp/views/index_datashow.html index c350256..dae41be 100644 --- a/src/main/webapp/views/index_datashow.html +++ b/src/main/webapp/views/index_datashow.html @@ -4,10 +4,12 @@ <meta charset="UTF-8"> <title>椤圭洰杩涘害琛�</title> <link rel="stylesheet" href="../static/css/style.css"> + <script src="../static/js/config.js"></script> <script src="../static/js/jquery-3.3.1.min.js"></script> <script src="../static/js/clock.js"></script> <script src="../static/js/tableData.js"></script> <script src="../static/js/projectShow.js"></script> + </head> <body> <div id="root"> -- Gitblit v1.9.1