|
@@ -7,7 +7,7 @@ const api = {
|
|
|
mainMenu: `/hqserver/demo/GetMainMenu`,
|
|
|
gameList: `/hqserver/demo/GetGameList`,
|
|
|
historyGameList: `/hqserver/demo/GetGameListHistory`,
|
|
|
- kline: (num) => `/hqserver/demo/KLine${num}`,
|
|
|
+ kline: `/hqserver/demo/KLineJSQ`,
|
|
|
};
|
|
|
const state = () => ({});
|
|
|
const mutations = {};
|
|
@@ -34,8 +34,8 @@ const actions = {
|
|
|
return res;
|
|
|
},
|
|
|
// K线图
|
|
|
- async kline({ commit }, { num, ...data }) {
|
|
|
- const res = await this.$axios.$post(`${api.kline(num)}`, data);
|
|
|
+ async kline({ commit }, payload) {
|
|
|
+ const res = await this.$axios.$post(`${api.kline}`, payload);
|
|
|
return res;
|
|
|
},
|
|
|
};
|