|
|
@@ -50,18 +50,18 @@ const actions = {
|
|
|
// 设置网页标题
|
|
|
setTitle({ commit }, title) {
|
|
|
state.title = title;
|
|
|
- getPortalSystemInfo = (context) => {
|
|
|
- const { commit, state } = context;
|
|
|
- if (state.logo) {
|
|
|
- return Promise.resolve(state.logo);
|
|
|
- }
|
|
|
+ },
|
|
|
+ getPortalSystemInfo(context) {
|
|
|
+ const { commit, state } = context;
|
|
|
+ if (state.logo) {
|
|
|
+ return Promise.resolve(state.logo);
|
|
|
+ }
|
|
|
|
|
|
- return getPortalImg().then((res) => {
|
|
|
- commit('CHANGE_SETTING', { key: 'logo', value: res.data.logoUrl });
|
|
|
+ return getPortalImg().then((res) => {
|
|
|
+ commit('CHANGE_SETTING', { key: 'logo', value: res.data.logoUrl });
|
|
|
|
|
|
- return res.data;
|
|
|
- });
|
|
|
- };
|
|
|
+ return res.data;
|
|
|
+ });
|
|
|
}
|
|
|
};
|
|
|
|