guanchunjie 3 年 前
コミット
bd07540d17
2 ファイル変更3 行追加3 行削除
  1. 1 1
      src/utils/index.js
  2. 2 2
      src/views/login.vue

+ 1 - 1
src/utils/index.js

@@ -4,7 +4,7 @@
 import { getStaticContent } from '@/api/ajax';
 import { setConfig } from './auth'
 
-export function getConfig() {
+export function getConfigInfor() {
   return new Promise((resolve, reject) => {
     let MethodName = 'sys_config_manager-GetLogo';
     getStaticContent(MethodName, {}).then(res => {

+ 2 - 2
src/views/login.vue

@@ -85,7 +85,7 @@ import { getContent, getLogin } from "@/api/ajax";
 import { getObjArr, saveObjArr } from "@/utils/role";
 import Cookies from "js-cookie";
 import { setToken } from "@/utils/auth";
-import { getConfig } from "@/utils/index";
+import { getConfigInfor } from "@/utils/index";
 export default {
   name: "Login",
   data() {
@@ -176,7 +176,7 @@ export default {
       });
     },
     async _getConfig() {
-      this.configInfor = await getConfig();
+      this.configInfor = await getConfigInfor();
       this.isShow = true;
     },
   },