guanchunjie 3 years ago
parent
commit
e77a3fd799
2 changed files with 3 additions and 3 deletions
  1. 1 1
      src/utils/index.js
  2. 2 2
      src/views/login/index.vue

+ 1 - 1
src/utils/index.js

@@ -1,7 +1,7 @@
 import { getLogin } from '@/api/api';
 import { setConfig } from './auth'
 //获取系统配置
-export function getConfig() {
+export function getConfigInfor() {
   return new Promise((resolve, reject) => {
     let MethodName = 'sys_config_manager-GetLogo';
     getLogin(MethodName, {}).then(res => {

+ 2 - 2
src/views/login/index.vue

@@ -111,7 +111,7 @@ import LayoutHeader from "@/components/login/LayoutHeader";
 import { updateWordPack } from "@/utils/i18n";
 import { getToken, removeToken } from "@/utils/auth";
 
-import { getConfig } from "@/utils/index";
+import { getConfigInfor } from "@/utils/index";
 
 export default {
   //import引入的组件需要注入到对象中才能使用
@@ -565,7 +565,7 @@ export default {
       }
     },
     async _getConfig() {
-      this.configInfor = await getConfig();
+      this.configInfor = await getConfigInfor();
       let user_name = JSON.parse(localStorage.getItem("user_name"));
       if (user_name) {
         if (user_name.user_type == "TEACHER") {