浏览代码

uniapp下载文件

sucheng 1 年之前
父节点
当前提交
c06d346dc0
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      pages/index/index.vue

+ 3 - 3
pages/index/index.vue

@@ -1,6 +1,6 @@
 <template>
 	<view>
-		<web-view src="http://61.177.40.178:8000" @message="handleMessage"></web-view>
+		<web-view src="http://192.168.0.117:3200" @message="handleMessage"></web-view>
 		<!-- <button @click="downloadFile">点击下载文件</button> -->
 	</view>
 </template>
@@ -23,8 +23,8 @@
 
 
 		onLoad: function() {
-			// this.handleMessage();
-			this.downloadFile();
+			this.handleMessage();
+			// this.downloadFile();
 		},
 		methods: {
 			handleMessage(evt) {