Преглед изворни кода

feat: 代码格式错误修改

allen пре 2 година
родитељ
комит
f8e0050192
2 измењених фајлова са 5 додато и 4 уклоњено
  1. 4 4
      src/store/modules/settings.js
  2. 1 0
      vue.config.js

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

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

+ 1 - 0
vue.config.js

@@ -71,6 +71,7 @@ module.exports = {
         pathRewrite: {
           // ['^' + process.env.VUE_APP_BASE_API]: ''
         }
+      }
     },
     disableHostCheck: true
   },