diff --git a/.env.development b/.env.development index 555fc75..c5a8ac9 100644 --- a/.env.development +++ b/.env.development @@ -5,7 +5,7 @@ VITE_OUTPUT_DIR = 'dev' VITE_PUBLIC_PATH = / #新数据接口 -# VITE_APP_API_BASE_URL = "http://39.101.133.168:8828/link" +VITE_APP_API_BASE_URL = "https://dbqb.nfdxy.net/devLotApi" # Whether to open mock diff --git a/src/api/API.js b/src/api/API.js index 79d641c..19c9e87 100644 --- a/src/api/API.js +++ b/src/api/API.js @@ -1,3 +1,4 @@ +import axios from "axios"; import request from "../utils/request"; const APIurl = import.meta.env.VITE_APP_API_BASE_URL; @@ -43,4 +44,15 @@ export function drawLottery(data){ prizeId: data.prizeId } }) +} + +export function updatePrizeList(){ + return axios({ + url: APIurl + '/admin/win/list', + method: 'post', + data: {}, + headers: { + 'Content-Type': 'application/json' + } + }) } \ No newline at end of file diff --git a/src/views/choujiang/lottery/PrizePanel.vue b/src/views/choujiang/lottery/PrizePanel.vue index 4d54b3d..13db6d4 100644 --- a/src/views/choujiang/lottery/PrizePanel.vue +++ b/src/views/choujiang/lottery/PrizePanel.vue @@ -54,7 +54,7 @@
-