Bläddra i källkod

upload

master
HolyKnightIX 1 år sedan
förälder
incheckning
9406345796
2 ändrade filer med 7 tillägg och 8 borttagningar
  1. +1
    -1
      src/pages/uploadPhoto/uploadPhoto.vue
  2. +6
    -7
      src/utils/request.js

+ 1
- 1
src/pages/uploadPhoto/uploadPhoto.vue Visa fil

@@ -241,7 +241,7 @@ async function toCloseStyle() {
if (res3.code == 200) {
// 改变全局的头像
userInfoModulesPinia.myAvatar = JSON.parse(moment.data).data.url;
uni.redirectTo({
uni.navigateTo({
url: "/pages/uploadPhoto/success",
});
} else {


+ 6
- 7
src/utils/request.js Visa fil

@@ -18,13 +18,12 @@ const request = (requestObj) => {
token: userInfoModulesPinia.token,
},
success: (res) => {
// if (res.data.code == 1052) {
// uni.reLaunch({
// url: "/pages/login/index?type=tokenFfalse",
// });
// return
// }
if (res.data.code == 1052) {
uni.reLaunch({
url: "/pages/login/index?type=tokenFfalse",
});
return
}
if (res.statusCode == 200) {
// if (res.data.code == 200) {
resolve(res.data)


Laddar…
Avbryt
Spara