pages/login/login.vue
@@ -277,6 +277,7 @@ "content-type": "application/json" }, success: (result) => { console.log(result); let res = result.data; uni.hideLoading(); if (res.code == 200) { @@ -293,6 +294,7 @@ uni.removeStorageSync('HCpassw'); } uni.setStorageSync('token', res.data.token); console.log('...'); setTimeout(() => { uni.navigateBack(); // 小程序用这个 把首页路由放第一个 uni.reLaunch({