guanchunjie %!s(int64=3) %!d(string=hai) anos
pai
achega
9e21331c1e
Modificáronse 2 ficheiros con 5 adicións e 4 borrados
  1. 5 3
      src/settings.js
  2. 0 1
      vue.config.js

+ 5 - 3
src/settings.js

@@ -1,9 +1,11 @@
-import { getConfig } from "@/utils/auth";
+let fn = require("@/utils/auth");
+console.log(fn);
 let title = ''
-if (getConfig()) {
-  let config = JSON.parse(getConfig());
+if (fn.getConfig()) {
+  let config = JSON.parse(fn.getConfig());
   title = config.title
 }
+console.log(title);
 module.exports = {
   title: title,
 

+ 0 - 1
vue.config.js

@@ -2,7 +2,6 @@
 const path = require('path')
 const defaultSettings = require('./src/settings.js')
 
-
 function resolve(dir) {
   return path.join(__dirname, dir)
 }