From 4e7dd994b4818ebc0760b2762c02cd0c28bb5d1e Mon Sep 17 00:00:00 2001 From: feige996 <1020102647@qq.com> Date: Fri, 6 Jun 2025 21:59:06 +0800 Subject: [PATCH] =?UTF-8?q?fix(index.vue):=20=E4=BF=AE=E6=94=B9toast?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E6=96=B9=E6=B3=95=EF=BC=8C=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E4=BD=BF=E7=94=A8toast.show?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/mine/index.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pages/mine/index.vue b/src/pages/mine/index.vue index c22773c..714fcff 100644 --- a/src/pages/mine/index.vue +++ b/src/pages/mine/index.vue @@ -162,7 +162,7 @@ const handlePassword = () => { // 消息通知 const handleInform = () => { // uni.navigateTo({ url: `/pages/mine/inform/index` }) - toast.success('功能开发中') + toast.show('功能开发中') } // 应用更新 const handleAppUpdate = () => { @@ -173,9 +173,9 @@ const handleAppUpdate = () => { // 请求完新版本信息的回调 // console.log(res.hasUpdate) if (res.hasUpdate) { - toast.success('检测到新版本,正在下载中...') + toast.show('检测到新版本,正在下载中...') } else { - toast.success('已是最新版本') + toast.show('已是最新版本') } }) updateManager.onUpdateReady(function (res) { @@ -198,7 +198,7 @@ const handleAppUpdate = () => { // #endif // #ifndef MP - toast.success('功能开发中') + toast.show('功能开发中') // #endif } // 关于我们 @@ -217,7 +217,7 @@ const handleClearCache = () => { uni.clearStorageSync() // 清除用户信息并跳转到登录页 useUserStore().logout() - toast.success('清除缓存成功') + toast.show('清除缓存成功') } catch (err) { console.error('清除缓存失败:', err) toast.error('清除缓存失败') @@ -237,7 +237,7 @@ const handleLogout = () => { useUserStore().logout() hasLogin.value = false // 执行退出登录逻辑 - toast.success('退出登录成功') + toast.show('退出登录成功') // #ifdef MP-WEIXIN // 微信小程序,去首页 // uni.reLaunch({ url: '/pages/index/index' })