Browse Source

modified 统一代码风格

何秀钢 3 years ago
parent
commit
04cfac71a0
3 changed files with 9 additions and 15 deletions
  1. 1 1
      web/build.config.js
  2. 7 12
      web/src/core/config.js
  3. 1 2
      web/src/core/gin-vue-admin.js

+ 1 - 1
web/build.config.js

@@ -7,7 +7,7 @@ module.exports = {
     /**
      * 如果设置path属性, { name: 'vue', scope: 'Vue', path: '/vue/2.6.9/vue.min.js' } 即编译出来以[baseCdnUrl][path]
      * 否则自动拼写 [baseCdnUrl]/[name]/[version]/[name].min.js
-     * */
+     */
     { name: 'vue', scope: 'Vue' },
     { name: 'vue-router', scope: 'VueRouter' },
     { name: 'vuex', scope: 'Vuex' },

+ 7 - 12
web/src/core/config.js

@@ -1,15 +1,10 @@
-/*
-* 网站配置文件
-* */
-
-
-
-const config ={
-
-    appName : 'Gin-Vue-Admin',
-
-    appLogo : 'https://www.gin-vue-admin.com/img/logo.png'
+/**
+ * 网站配置文件
+ */
 
+const config = {
+  appName: 'Gin-Vue-Admin',
+  appLogo: 'https://www.gin-vue-admin.com/img/logo.png'
 }
 
-export default config
+export default config

+ 1 - 2
web/src/core/gin-vue-admin.js

@@ -10,10 +10,9 @@ import APlayer from '@moefe/vue-aplayer'
 import '../../node_modules/timeline-vuejs/dist/timeline-vuejs.css'
 // 路由守卫
 import Bus from '@/utils/bus'
-//加载网站配置文件夹
+// 加载网站配置文件夹
 import config from './config'
 Vue.prototype.$GIN_VUE_ADMIN = config
-console.log(config)
 Vue.use(Bus)
 Vue.use(APlayer, {
   defaultCover: 'https://github.com/u3u.png',