Browse Source

init

master
pref_mail@163.com 1 year ago
parent
commit
68ba4279a8
  1. 2
      public/index.html
  2. 2
      src/config/env.js
  3. 2
      src/config/website.js
  4. 4
      src/lang/zh.js
  5. 16
      vue.config.js

2
public/index.html

@ -33,7 +33,7 @@
<script src="<%= BASE_URL %>cdn/xlsx/FileSaver.min.js"></script>
<script src="<%= BASE_URL %>cdn/xlsx/xlsx.full.min.js"></script>
<link rel="icon" href="<%= BASE_URL %>favicon.png" />
<title>四川省应急教育培训网络平台</title>
<title>货无忧培训教育系统</title>
<style>
html,
body,

2
src/config/env.js

@ -7,7 +7,7 @@ const env = process.env
if (env.NODE_ENV === 'development') {
baseUrl = `http://nps.scqtkj.com:51490`; // 开发环境地址
} else if (env.NODE_ENV === 'production') {
baseUrl = ``; //生产环境地址
baseUrl = `http://192.168.2.107:8081`; //生产环境地址
} else if (env.NODE_ENV === 'test') {
baseUrl = ``; //测试环境地址
}

2
src/config/website.js

@ -13,7 +13,7 @@ export default {
title: "saber",
logo: "S",
key: "saber", //配置主键,目前用于存储
indexTitle: "四川省应急教育培训网络平台",
indexTitle: "货无忧培训教育系统",
clientId: "saber", // 客户端id
clientSecret: "saber_secret", // 客户端密钥
tenantMode: true, // 是否开启租户模式

4
src/lang/zh.js

@ -1,5 +1,5 @@
export default {
title: "四川省应急教育培训网络平台",
title: "货无忧培训教育系统",
logoutTip: "退出系统, 是否继续?",
submitText: "确定",
cancelText: "取消",
@ -78,7 +78,7 @@ export default {
},
login: {
title: "登录 ",
info: "四川省应急教育培训网络平台",
info: "货无忧培训教育系统",
tenantId: "请输入租户ID",
username: "请输入账号",
password: "请输入密码",

16
vue.config.js

@ -27,7 +27,7 @@ module.exports = {
'/api': {
// 本地服务接口地址
// target: 'http://nps.scqtkj.com:51490/',
target: 'http://192.168.2.14:8081/',
target: 'http://192.168.3.107:8081/',
//target: 'http://10.10.10.11:8088/',
//远程演示服务地址,可用于直接启动项目
//target: 'https://saber.bladex.vip/api',
@ -35,18 +35,8 @@ module.exports = {
pathRewrite: {
'^/api': ''
}
},
'/': {
// 本地服务接口地址
target: 'http://nps.scqtkj.com:51490/',
//target: 'http://10.10.10.11:8088/',
//远程演示服务地址,可用于直接启动项目
//target: 'https://saber.bladex.vip/api',
ws: true,
pathRewrite: {
'^/': '/'
}
},
}
}
}

Loading…
Cancel
Save