config.js 1.4 KB
Newer Older
何秀钢 已提交
1 2 3
/**
 * 网站配置文件
 */
4

何秀钢 已提交
5
const config = {
P
piexlmax 已提交
6 7 8
  appName: 'Gin-Vue-Admin',
  appLogo: 'https://www.gin-vue-admin.com/img/logo.png',
  showViteLogo: true
9 10
}

B
bypanghu 已提交
11
export const viteLogo = (env) => {
P
piexlmax 已提交
12 13 14 15 16 17 18 19 20
  if (config.showViteLogo) {
    const chalk = require('chalk')
    console.log(
      chalk.green(
        `> 欢迎使用Gin-Vue-Admin,开源地址:https://github.com/flipped-aurora/gin-vue-admin`
      )
    )
    console.log(
      chalk.green(
Mr.奇淼('s avatar
Mr.奇淼( 已提交
21
        `> 当前版本:V2.5.0 beta.2`
P
piexlmax 已提交
22 23 24 25 26 27 28
      )
    )
    console.log(
      chalk.green(
        `> 加群方式:微信:shouzi_1994 QQ群:622360840`
      )
    )
P
piexlmax 已提交
29 30 31 32 33
    console.log(
      chalk.green(
        `> GVA讨论社区:https://support.qq.com/products/371961`
      )
    )
P
piexlmax 已提交
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
    console.log(
      chalk.green(
        `> 默认自动化文档地址:http://127.0.0.1:${env.VITE_SERVER_PORT}/swagger/index.html`
      )
    )
    console.log(
      chalk.green(
        `> 默认自动化文档地址:http://127.0.0.1:${env.VITE_SERVER_PORT}/swagger/index.html`
      )
    )
    console.log(
      chalk.green(
        `> 默认前端文件运行地址:http://127.0.0.1:${env.VITE_CLI_PORT}`
      )
    )
    console.log(
      chalk.green(
        `> 如果项目让您获得了收益,希望您能请团队喝杯可乐:https://www.github.com/flipped-aurora/gin-vue-admin/server.com/docs/coffee`
      )
    )
    console.log('\n')
  }
B
bypanghu 已提交
56 57
}

P
piexlmax 已提交
58
export default config