From 8e91b539f0e6b6ef85a7855a9bf7d2e3457846b6 Mon Sep 17 00:00:00 2001 From: ronger Date: Tue, 26 Jan 2021 19:15:23 +0800 Subject: [PATCH] :bug: https://github.com/rymcu/forest/issues/23 --- pages/portfolio/post/_portfolio_id.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pages/portfolio/post/_portfolio_id.vue b/pages/portfolio/post/_portfolio_id.vue index 24507cc..638ebb2 100644 --- a/pages/portfolio/post/_portfolio_id.vue +++ b/pages/portfolio/post/_portfolio_id.vue @@ -268,11 +268,13 @@ if (res && res.message) { _ts.$message.error(res.message); } else { - _ts.contentEditor.setValue(res.portfolioDescription); _ts.$message({ type: 'success', message: title + '成功!' }); + _ts.$router.push({ + path: '/portfolio/' + res.idPortfolio + }) } _ts.$set(_ts, 'loading', false) }).catch(error => _ts.$set(_ts, 'loading', false))