Kaynağa Gözat

fix: 格式错误

allen 2 yıl önce
ebeveyn
işleme
febf1d4efb
1 değiştirilmiş dosya ile 10 ekleme ve 10 silme
  1. 10 10
      src/store/modules/settings.js

+ 10 - 10
src/store/modules/settings.js

@@ -50,18 +50,18 @@ const actions = {
   // 设置网页标题
   // 设置网页标题
   setTitle({ commit }, title) {
   setTitle({ commit }, title) {
     state.title = 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;
+    });
   }
   }
 };
 };