Browse Source

浏览器下载

gzb
wangzhonglu 8 months ago
parent
commit
44fce55a3b
2 changed files with 8 additions and 1 deletions
  1. 2
    0
      public/config.js
  2. 6
    1
      src/views/schoolSection/applicationManage/greenBrowser.vue

+ 2
- 0
public/config.js View File

5
       baseUrl: "https://mcapitest.xhkjedu.com/",
5
       baseUrl: "https://mcapitest.xhkjedu.com/",
6
       baseImageUrl: "https://mcapitest.xhkjedu.com/",
6
       baseImageUrl: "https://mcapitest.xhkjedu.com/",
7
       showImageUrl: "https://mcapitest.xhkjedu.com/",
7
       showImageUrl: "https://mcapitest.xhkjedu.com/",
8
+      downLoadUrl: "https://mcapitest.xhkjedu.com/",
8
       wsUrl: "wss://mcwstest.xhkjedu.com/ws",
9
       wsUrl: "wss://mcwstest.xhkjedu.com/ws",
9
       axiosApiTimeout: 60, // 接口超时时间 单位秒
10
       axiosApiTimeout: 60, // 接口超时时间 单位秒
10
       axiosFileTimeout: 120, // 上传文件超时时间 单位秒
11
       axiosFileTimeout: 120, // 上传文件超时时间 单位秒
20
       baseUrl: "https://mcapi.xhkjedu.com/",
21
       baseUrl: "https://mcapi.xhkjedu.com/",
21
       baseImageUrl: "https://mcapi.xhkjedu.com/",
22
       baseImageUrl: "https://mcapi.xhkjedu.com/",
22
       showImageUrl: "https://mcapi.xhkjedu.com/",
23
       showImageUrl: "https://mcapi.xhkjedu.com/",
24
+      downLoadUrl: "https://mcapitest.xhkjedu.com/",
23
       wsUrl: "wss://mcws.xhkjedu.com/ws",
25
       wsUrl: "wss://mcws.xhkjedu.com/ws",
24
       axiosApiTimeout: 20, // 接口超时时间 单位秒
26
       axiosApiTimeout: 20, // 接口超时时间 单位秒
25
       axiosFileTimeout: 30, // 上传文件超时时间 单位秒
27
       axiosFileTimeout: 30, // 上传文件超时时间 单位秒

+ 6
- 1
src/views/schoolSection/applicationManage/greenBrowser.vue View File

11
         />
11
         />
12
       </div>
12
       </div>
13
       <div class="search_right">
13
       <div class="search_right">
14
-        <div class="download_btn">
14
+        <div class="download_btn" @click="toDownloadBrower()">
15
           <Icon type="md-download" />
15
           <Icon type="md-download" />
16
           <div>下载浏览器</div>
16
           <div>下载浏览器</div>
17
         </div>
17
         </div>
180
     }
180
     }
181
   },
181
   },
182
   methods: {
182
   methods: {
183
+    toDownloadBrower() {
184
+      let url =
185
+        this.$api.downLoadUrl + "upload/greenbrowser/xh_control_browser.apk";
186
+      window.open(encodeURI(url, "utf-8"), "_blank");
187
+    },
183
     // 搜索
188
     // 搜索
184
     searchList() {
189
     searchList() {
185
       this.searchForm.page = 1;
190
       this.searchForm.page = 1;

Loading…
Cancel
Save