py 2 lat temu
rodzic
commit
cc146d6de0
2 zmienionych plików z 5 dodań i 3 usunięć
  1. 1 1
      manifest.json
  2. 4 2
      pages-my/user-info.vue

+ 1 - 1
manifest.json

@@ -100,7 +100,7 @@
             "proxy" : {
                 "/api" : {
                     // "target" : "https://test-userapi.sjzkeji.com",
-					"target" : "https://userapi.sjzkeji.com",
+                    "target" : "https://userapi.sjzkeji.com",
                     "changeOrigin" : true,
                     "secure" : false,
                     "pathRewrite" : {

+ 4 - 2
pages-my/user-info.vue

@@ -82,7 +82,8 @@
 		},
 		methods: {
 			chooseavatar(e) {
-				this.userUpdate(e.detail.avatarUrl)
+				this.uploadingFile(e.detail.avatarUrl)
+				// this.userUpdate()
 				console.log(e);
 			},
 			commonApplet() {
@@ -126,7 +127,8 @@
 				}
 			},
 			uploadingFile(file) {
-				upLoadingFileOss(file.path).then((res) => {
+				console.log(file,'------------------');
+				upLoadingFileOss(file).then((res) => {
 					if (res) {
 						this.userUpdate(res)
 					} else {