Commit 43d5198d authored by liwei's avatar liwei

修改了上传逻辑

parent f0ad6f13
......@@ -162,7 +162,7 @@
//上传图片
uploadFilePromise(file) {
return new Promise((resolve, reject) => {
if (this.uploadType === 'aliYun'){
if (this.uploadType === 'aliYun_direct'){
uni.uploadFile({
// url: 'http://192.168.1.18:8082/common/aliyunOssFileUploadByWx',
url: this.$BASE_URL + '/common/aliyunOssFileUploadByWx',
......
......@@ -324,7 +324,7 @@ import {getOssUrl, getUploadType} from "../../api/article";
})
//接收cropper页面传递的图片路径
uni.$on('Cropper', path => {
if (this.uploadType === 'aliYun'){
if (this.uploadType === 'aliYun_direct'){
uni.uploadFile({
// url: 'http://192.168.1.18:8082/common/aliyunOssFileUploadByWx',
url: this.$BASE_URL + '/common/aliyunOssFileUploadByWx',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment