|
@@ -15,6 +15,7 @@ const api = {
|
|
|
|
|
|
const state = () => ({
|
|
|
menusall: [],
|
|
|
+ menusalls: [],
|
|
|
websiteInfo: [],
|
|
|
imgNewsList: [],
|
|
|
linkTypeList: [],
|
|
@@ -32,10 +33,15 @@ const actions = {
|
|
|
return res.data;
|
|
|
},
|
|
|
async menusQueryAll ({ commit }) {
|
|
|
- const res = await $axios.get(api.menusQuery, { isshow: true });
|
|
|
+ const res = await $axios.get(api.menusQuery);
|
|
|
commit('menusQueryAll', res);
|
|
|
return res;
|
|
|
},
|
|
|
+ async menusQueryAlls ({ commit }) {
|
|
|
+ const res = await $axios.get(api.menusQuery, { isshow: true });
|
|
|
+ commit('menusQueryAlls', res);
|
|
|
+ return res;
|
|
|
+ },
|
|
|
async websiteQuery ({ commit }) {
|
|
|
const res = await $axios.get(api.websiteQuery);
|
|
|
commit('websiteQuery', res);
|
|
@@ -95,6 +101,9 @@ const mutations = {
|
|
|
menusQueryAll(state, payload) {
|
|
|
state.menusall = payload.data;
|
|
|
},
|
|
|
+ menusQueryAlls(state, payload) {
|
|
|
+ state.menusalls = payload.data;
|
|
|
+ },
|
|
|
websiteQuery(state, payload) {
|
|
|
state.websiteInfo = payload.data;
|
|
|
},
|