集中配置端口

This commit is contained in:
东邪黄药师
2021-03-08 23:43:17 +08:00
parent 48bb3b6452
commit 7bf3294113
4 changed files with 9 additions and 5 deletions
+3 -2
View File
@@ -43,13 +43,14 @@ export default new Vue({
//引入echarts
import echarts from 'echarts'
import buildConfig from '../build.config';
Vue.prototype.$echarts = echarts;
console.log(`
欢迎使用 Gin-Vue-Admin
当前版本:V2.4.0
加群方式:微信:shouzi_1994 QQ群:622360840
默认自动化文档地址:http://127.0.0.1%s/swagger/index.html
默认前端文件运行地址:http://127.0.0.1:8080
默认自动化文档地址:http://127.0.0.1:` + buildConfig.goServerPort + `/swagger/index.html
默认前端文件运行地址:http://127.0.0.1:`+ buildConfig.vueClientPort + `
如果项目让您获得了收益,希望您能请团队喝杯可乐:https://www.gin-vue-admin.com/docs/coffee
`)
@@ -1,6 +1,6 @@
<template>
<div style="height:80vh">
<iframe width="100%" height="100%" :src="'http://127.0.0.1:8888/form-generator/#/'" frameborder="0"></iframe>
<iframe width="100%" height="100%" :src="url" frameborder="0"></iframe>
</div>
</template>
@@ -10,6 +10,7 @@ export default {
name:"FormGenerator",
data(){
return{
url:'http://127.0.0.1:' + buildConf.goServerPort + '/form-generator/#/',
basePath:path
}
},