diff --git a/src/views/user/Noteedit.vue b/src/views/user/Noteedit.vue index b18b58ff..823816d1 100644 --- a/src/views/user/Noteedit.vue +++ b/src/views/user/Noteedit.vue @@ -200,13 +200,13 @@ export default { this.timer = null; this.$router.go(-1); } - } else { - this.isShowTip = '当前网络异常,内容已离线保存,请尝试连接网络后重新自动上传!'; + } + }).catch(()=>{ + this.isShowTip = '当前网络异常,内容已离线保存,请尝试连接网络后重新自动上传!'; setTimeout(()=>{ this.isShowTip = ''; },10000 * 2) - sessionStorage.setItem('isShowTip',this.editdata.content); - } + sessionStorage.setItem('isShowTip',this.editdata.content); }) } },