修改API domain
This commit is contained in:
+2
-2
@@ -22,7 +22,7 @@ window.onload = function () {
|
||||
paramValue = getParameterByName('id');
|
||||
console.log(paramValue);
|
||||
|
||||
axios.get("http://127.0.0.1:10001/api/record/" + paramValue)
|
||||
axios.get("https://pcredive.ray650128.com/backend/api/record/" + paramValue)
|
||||
.then(function (response) {
|
||||
// 在這裡處理回傳的資料
|
||||
var options = response.data;
|
||||
@@ -97,7 +97,7 @@ function fillRecord(
|
||||
knife3c_damage
|
||||
) {
|
||||
// 发送登录请求
|
||||
axios.put("http://127.0.0.1:10001/api/record/" + recordId, {
|
||||
axios.put("https://pcredive.ray650128.com/backend/api/record/" + recordId, {
|
||||
memberId: memberId,
|
||||
record1: {
|
||||
boss: knife1_boss,
|
||||
|
||||
+2
-2
@@ -39,7 +39,7 @@ row_1.appendChild(heading_6);
|
||||
row_1.appendChild(heading_7);
|
||||
thead.appendChild(row_1);
|
||||
// 取得刀表
|
||||
axios.get("http://127.0.0.1:10001/api/record", {
|
||||
axios.get("https://pcredive.ray650128.com/backend/api/record", {
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'Accept': 'application/json'
|
||||
@@ -99,7 +99,7 @@ function getDate() {
|
||||
var dateSplit = selectedDate.value.split("-");
|
||||
console.log(dateSplit);
|
||||
// 取得刀表
|
||||
axios.get("http://127.0.0.1:10001/api/record/" + dateSplit[0] + "/" + dateSplit[1] + "/" + dateSplit[2], {
|
||||
axios.get("https://pcredive.ray650128.com/backend/api/record/" + dateSplit[0] + "/" + dateSplit[1] + "/" + dateSplit[2], {
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'Accept': 'application/json'
|
||||
|
||||
@@ -40,7 +40,7 @@ document
|
||||
});
|
||||
|
||||
axios
|
||||
.get("http://127.0.0.1:10001/api/member/not_leave")
|
||||
.get("https://pcredive.ray650128.com/backend/api/member/not_leave")
|
||||
.then(function (response) {
|
||||
// 在這裡處理回傳的資料
|
||||
var options = response.data;
|
||||
@@ -77,7 +77,7 @@ function fillRecord(
|
||||
knife3c_damage
|
||||
) {
|
||||
// 发送登录请求
|
||||
axios.post("http://127.0.0.1:10001/api/record/" + memberId, {
|
||||
axios.post("https://pcredive.ray650128.com/backend/api/record/" + memberId, {
|
||||
record1: {
|
||||
boss: knife1_boss,
|
||||
damage: parseInt(knife1_damage),
|
||||
|
||||
Reference in New Issue
Block a user