Browse Source

修改名称&隐藏单点登录

test
pref_mail@163.com 2 years ago
parent
commit
08d8758f39
  1. 1
      .gitignore
  2. 8
      src/config/website.js
  3. 4
      src/lang/zh.js
  4. 10
      src/page/login/index.vue
  5. 2
      vite.config.js

1
.gitignore vendored

@ -26,3 +26,4 @@ yarn.lock
*.njsproj *.njsproj
*.sln *.sln
*.sw* *.sw*
.history/

8
src/config/website.js

@ -2,10 +2,10 @@
* 全局配置文件 * 全局配置文件
*/ */
export default { export default {
title: 'saber', title: 'TWMS',
logo: 'S', logo: 'S',
key: 'saber', //配置主键,目前用于存储 key: 'TWMS', //配置主键,目前用于存储
indexTitle: 'Saber Admin', indexTitle: 'TWMS Admin',
clientId: 'saber', // 客户端id clientId: 'saber', // 客户端id
clientSecret: 'saber_secret', // 客户端密钥 clientSecret: 'saber_secret', // 客户端密钥
tenantMode: true, // 是否开启租户模式 tenantMode: true, // 是否开启租户模式
@ -52,7 +52,7 @@ export default {
// 第三方系统授权地址 // 第三方系统授权地址
authUrl: 'http://localhost/blade-auth/oauth/render', authUrl: 'http://localhost/blade-auth/oauth/render',
// 报表设计器地址(cloud端口为8108,boot端口为80) // 报表设计器地址(cloud端口为8108,boot端口为80)
reportUrl: 'http://localhost:8108/ureport', reportUrl: 'http://192.168.2.101:8108/ureport',
// 单点登录系统认证(blade-auth服务的地) // 单点登录系统认证(blade-auth服务的地)
ssoUrl: 'http://localhost:8100/oauth/authorize?client_id=saber&response_type=code&redirect_uri=', ssoUrl: 'http://localhost:8100/oauth/authorize?client_id=saber&response_type=code&redirect_uri=',
// 单点登录回调地址(Saber服务的地址) // 单点登录回调地址(Saber服务的地址)

4
src/lang/zh.js

@ -1,5 +1,5 @@
export default { export default {
title: 'Saber企业管理平台', title: '货无忧物流信息管理平台',
logoutTip: '退出系统, 是否继续?', logoutTip: '退出系统, 是否继续?',
submitText: '确定', submitText: '确定',
cancelText: '取消', cancelText: '取消',
@ -78,7 +78,7 @@ export default {
}, },
login: { login: {
title: '登录 ', title: '登录 ',
info: 'BladeX 企业级开发平台', info: '货无忧物流信息平台',
tenantId: '请输入租户ID', tenantId: '请输入租户ID',
username: '请输入账号', username: '请输入账号',
password: '请输入密码', password: '请输入密码',

10
src/page/login/index.vue

@ -6,7 +6,7 @@
{{ time }} {{ time }}
</div> </div>
<p class="title">{{ $t('login.info') }}</p> <p class="title">{{ $t('login.info') }}</p>
<div style="font-size: 15px"> <!-- <div style="font-size: 15px">
<span>----------------------------------------------</span> <span>----------------------------------------------</span>
<br /> <br />
<span>管理租户编号000000</span> <span>管理租户编号000000</span>
@ -26,7 +26,7 @@
<span>租户管理员账号: admin / admin</span> <span>租户管理员账号: admin / admin</span>
<br /> <br />
<span>----------------------------------------------</span> <span>----------------------------------------------</span>
</div> </div> -->
<!--<img class="img" src="/img/logo.png" alt="">--> <!--<img class="img" src="/img/logo.png" alt="">-->
</div> </div>
<div class="login-border"> <div class="login-border">
@ -39,10 +39,10 @@
<codeLogin v-else-if="activeName === 'code'"></codeLogin> <codeLogin v-else-if="activeName === 'code'"></codeLogin>
<thirdLogin v-else-if="activeName === 'third'"></thirdLogin> <thirdLogin v-else-if="activeName === 'third'"></thirdLogin>
<div class="login-menu"> <div class="login-menu">
<a href="#" @click.stop="activeName = 'user'">{{ $t('login.userLogin') }}</a> <!-- <a href="#" @click.stop="activeName = 'user'">{{ $t('login.userLogin') }}</a> -->
<!--<a href="#" @click.stop="activeName='code'">{{ $t('login.phoneLogin') }}</a>--> <!--<a href="#" @click.stop="activeName='code'">{{ $t('login.phoneLogin') }}</a>-->
<a href="#" @click.stop="activeName = 'third'">{{ $t('login.thirdLogin') }}</a> <!-- <a href="#" @click.stop="activeName = 'third'">{{ $t('login.thirdLogin') }}</a> -->
<a :href="website.ssoUrl + website.redirectUri">{{ $t('login.ssoLogin') }}</a> <!-- <a :href="website.ssoUrl + website.redirectUri">{{ $t('login.ssoLogin') }}</a> -->
</div> </div>
</div> </div>
</div> </div>

2
vite.config.js

@ -12,7 +12,7 @@ export default ({ mode, command }) => {
port: 2888, port: 2888,
proxy: { proxy: {
'/api': { '/api': {
target: 'http://localhost', target: 'http://127.0.0.1:8888',
//target: 'http://test3.javablade.com', //target: 'http://test3.javablade.com',
changeOrigin: true, changeOrigin: true,
rewrite: path => path.replace(/^\/api/, ''), rewrite: path => path.replace(/^\/api/, ''),

Loading…
Cancel
Save