guhongwei 4 years ago
parent
commit
93d9f63f5f
4 changed files with 8 additions and 3 deletions
  1. 1 1
      src/store/dock.js
  2. 1 1
      src/store/dockPw.js
  3. 1 1
      src/store/dock_chat.js
  4. 5 0
      src/store/statistics.js

+ 1 - 1
src/store/dock.js

@@ -4,7 +4,7 @@ import _ from 'lodash';
 const jwt = require('jsonwebtoken');
 const jwt = require('jsonwebtoken');
 Vue.use(Vuex);
 Vue.use(Vuex);
 const api = {
 const api = {
-  dockInfo: `/site/api/live/v0/dock/index`,
+  dockInfo: `/api/live/v0/dock/index`,
 };
 };
 const state = () => ({});
 const state = () => ({});
 const mutations = {};
 const mutations = {};

+ 1 - 1
src/store/dockPw.js

@@ -4,7 +4,7 @@ import _ from 'lodash';
 const jwt = require('jsonwebtoken');
 const jwt = require('jsonwebtoken');
 Vue.use(Vuex);
 Vue.use(Vuex);
 const api = {
 const api = {
-  dockInfo: `/site/api/live/v0/dock/dockPw`,
+  dockInfo: `/api/live/v0/dock/dockPw`,
 };
 };
 const state = () => ({});
 const state = () => ({});
 const mutations = {};
 const mutations = {};

+ 1 - 1
src/store/dock_chat.js

@@ -4,7 +4,7 @@ import _ from 'lodash';
 const jwt = require('jsonwebtoken');
 const jwt = require('jsonwebtoken');
 Vue.use(Vuex);
 Vue.use(Vuex);
 const api = {
 const api = {
-  interface: `/site/api/live/v0/dock/dockChat`,
+  interface: `/api/live/v0/dock/dockChat`,
 };
 };
 const state = () => ({});
 const state = () => ({});
 const mutations = {};
 const mutations = {};

+ 5 - 0
src/store/statistics.js

@@ -13,6 +13,11 @@ const actions = {
     const res = await this.$axios.$get(`${api.interface}/${key}`);
     const res = await this.$axios.$get(`${api.interface}/${key}`);
     return res;
     return res;
   },
   },
+  // 展会头部统计
+  async dockQuery({ commit }, key) {
+    const res = await this.$axios.$get(`${api.interface}/dockIndex`, key);
+    return res;
+  },
 };
 };
 export default {
 export default {
   namespaced: true,
   namespaced: true,