@@ -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" : {
@@ -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 {