Selaa lähdekoodia

浏览器下载

gzb
wangzhonglu 8 kuukautta sitten
vanhempi
commit
44fce55a3b

+ 2
- 0
public/config.js Näytä tiedosto

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

+ 6
- 1
src/views/schoolSection/applicationManage/greenBrowser.vue Näytä tiedosto

@@ -11,7 +11,7 @@
11 11
         />
12 12
       </div>
13 13
       <div class="search_right">
14
-        <div class="download_btn">
14
+        <div class="download_btn" @click="toDownloadBrower()">
15 15
           <Icon type="md-download" />
16 16
           <div>下载浏览器</div>
17 17
         </div>
@@ -180,6 +180,11 @@ export default {
180 180
     }
181 181
   },
182 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 189
     searchList() {
185 190
       this.searchForm.page = 1;

Loading…
Peruuta
Tallenna