提交 82d75d4e 编写于 作者: X xiaoyucoding

modify: 统一网络请求的服务地址

上级 f724b182
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</view> </view>
</template> </template>
<script> <script>
const requestUrl = "https://service.dcloud.net.cn/ajax/echo/text?name=uni-app" const requestUrl = "https://unidemo.dcloud.net.cn/ajax/echo/text?name=uni-app"
const duration = 2000 const duration = 2000
export default { export default {
data() { data() {
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
console.log('chooseImage success, temp path is', res.tempFilePaths[0]) console.log('chooseImage success, temp path is', res.tempFilePaths[0])
var imageSrc = res.tempFilePaths[0] var imageSrc = res.tempFilePaths[0]
uni.uploadFile({ uni.uploadFile({
url: "https://demo.dcloud.net.cn/helloh5/uploader/upload.php", url: "https://unidemo.dcloud.net.cn/upload",
filePath: imageSrc, filePath: imageSrc,
name: 'data', name: 'data',
success: (res) => { success: (res) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册