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