update pages/index/login.vue.

移除回调,用法错误

Signed-off-by: 天痕 <614891294@qq.com>
pull/49/head
天痕 2024-03-05 05:55:36 +00:00 committed by Gitee
parent b10f8d3181
commit f6fefe3aef
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@
// H5 // H5
let returnUrl = uni.getStorageSync('returnUrl'); let returnUrl = uni.getStorageSync('returnUrl');
if (returnUrl) { if (returnUrl) {
uni.removeStorage('returnUrl'); uni.removeStorage({key:'returnUrl'});
location.replace(returnUrl); location.replace(returnUrl);
} else { } else {
uni.switchTab({ uni.switchTab({