Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
lls_program
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-08-29 17:22:55 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7f62cacf3aca0b4bcb40955b8251c60c3bd603b9
7f62cacf
1 parent
6ba55e35
fix(上传媒体): 修改保存后跳转逻辑,使用返回前一页代替重新加载仪表盘
将保存媒体后的跳转逻辑从重新加载仪表盘改为返回前一页,提供更自然的用户体验
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
src/pages/UploadMedia/index.vue
src/pages/UploadMedia/index.vue
View file @
7f62cac
...
...
@@ -434,10 +434,11 @@ const saveMedia = async () => {
// 延迟返回Dashboard页面
setTimeout(() => {
Taro.reLaunch({
url: '/pages/Dashboard/index'
});
// Taro.navigateBack();
// Taro.reLaunch({
// url: '/pages/Dashboard/index'
// });
// 返回前一页
Taro.navigateBack();
}, 2000);
} catch (error) {
console.error('保存失败:', error);
...
...
Please
register
or
login
to post a comment