Browse Source

chrome下载地址

seimin 3 years ago
parent
commit
70260f4eee

+ 2 - 2
src/app/views/login/login.component.html

@@ -41,8 +41,8 @@
41
     <div class="bottom">
41
     <div class="bottom">
42
       <span>@大势科技.[京ICO:143]</span>
42
       <span>@大势科技.[京ICO:143]</span>
43
       <strong>点击下载谷歌浏览器👉</strong>
43
       <strong>点击下载谷歌浏览器👉</strong>
44
-      <a href="http://192.168.220.84/chrome64/ChromeSetup32.exe">win32</a>
45
-      <a href="http://192.168.220.84/chrome64/ChromeSetup64.exe">win64</a>
44
+      <a [href]="http.domain+'/chrome64/ChromeSetup32.exe'">win32</a>
45
+      <a [href]="http.domain+'/chrome64/ChromeSetup64.exe'">win64</a>
46
     </div>
46
     </div>
47
   </div>
47
   </div>
48
 </div>
48
 </div>

+ 3 - 0
src/app/views/login/login.component.ts

@@ -4,6 +4,7 @@ import { FormBuilder, Validators, FormGroup } from "@angular/forms";
4
 import { NzMessageService } from "ng-zorro-antd/message";
4
 import { NzMessageService } from "ng-zorro-antd/message";
5
 
5
 
6
 import { MainService } from "../../services/main.service";
6
 import { MainService } from "../../services/main.service";
7
+import http from "../../../assets/js/http";
7
 import { AES, mode, pad, enc } from "crypto-js";
8
 import { AES, mode, pad, enc } from "crypto-js";
8
 
9
 
9
 @Component({
10
 @Component({
@@ -12,6 +13,7 @@ import { AES, mode, pad, enc } from "crypto-js";
12
   styleUrls: ["./login.component.less"],
13
   styleUrls: ["./login.component.less"],
13
 })
14
 })
14
 export class LoginComponent implements OnInit {
15
 export class LoginComponent implements OnInit {
16
+  http;
15
   validateForm: FormGroup;
17
   validateForm: FormGroup;
16
   loading: boolean = false;
18
   loading: boolean = false;
17
   // 是否单点登录
19
   // 是否单点登录
@@ -23,6 +25,7 @@ export class LoginComponent implements OnInit {
23
     private msg: NzMessageService
25
     private msg: NzMessageService
24
   ) {}
26
   ) {}
25
   ngOnInit() {
27
   ngOnInit() {
28
+    this.http = http;
26
     let url = location.href;
29
     let url = location.href;
27
     this.isSingleSignOn = url.includes("?");
30
     this.isSingleSignOn = url.includes("?");
28
     if (this.isSingleSignOn) {
31
     if (this.isSingleSignOn) {

+ 1 - 0
src/assets/js/http.js

@@ -3,6 +3,7 @@ var port = location.port;//端口
3
 var protocolName = document.location.protocol;//http协议
3
 var protocolName = document.location.protocol;//http协议
4
 var wsName = protocolName === 'http:' ? 'ws' : 'wss';//ws协议
4
 var wsName = protocolName === 'http:' ? 'ws' : 'wss';//ws协议
5
 module.exports = {
5
 module.exports = {
6
+  domain: protocolName + '//' + domainName + ':' + port,//chrome下载
6
   host: protocolName + '//' + domainName + ':' + port + '/service',//测试接口
7
   host: protocolName + '//' + domainName + ':' + port + '/service',//测试接口
7
   specimenViewHost: protocolName + '//' + domainName + ':' + port + '/specimenView',//业务视图
8
   specimenViewHost: protocolName + '//' + domainName + ':' + port + '/specimenView',//业务视图
8
   bigScreenHost: protocolName + '//' + domainName + ':' + port + '/largeScreen',//大屏地址
9
   bigScreenHost: protocolName + '//' + domainName + ':' + port + '/largeScreen',//大屏地址