Przeglądaj źródła

增加menu版本标识

kevin_zhangl 2 lat temu
rodzic
commit
24fbdb02bb
2 zmienionych plików z 4 dodań i 3 usunięć
  1. 3 2
      src/api/user.js
  2. 1 1
      src/store/modules/user.js

+ 3 - 2
src/api/user.js

@@ -61,10 +61,11 @@ export function getUserInfo(data) {
  * 系统信息
  * @returns {*}
  */
-export function getBaseInfo() {
+export function getBaseInfo(data) {
   return request({
     url: '/v1/site/base-info',
-    method: 'get'
+    method: 'get',
+    params: data
   })
 }
 

+ 1 - 1
src/store/modules/user.js

@@ -119,7 +119,7 @@ const actions = {
   },
   getBaseInfo({ commit }, data) {
     return new Promise((resolve, reject) => {
-      getBaseInfo(data).then(response => {
+      getBaseInfo({version: 'v2'}).then(response => {
         let ret = response.data
         usersInfo.clearBaseInfo()
         usersInfo.setBaseInfo(ret)