Explorar o código

chrome下载地址

seimin %!s(int64=3) %!d(string=hai) anos
pai
achega
70260f4eee

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

@@ -41,8 +41,8 @@
41 41
     <div class="bottom">
42 42
       <span>@大势科技.[京ICO:143]</span>
43 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 46
     </div>
47 47
   </div>
48 48
 </div>

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

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

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

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