From 450dc8a1e4e0d643817ffd0eee04b938cc84af74 Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Fri, 07 Nov 2025 15:23:09 +0800
Subject: [PATCH] feat:修改密码成功清除记住密码

---
 src/components/WebViewPlus.vue |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/components/WebViewPlus.vue b/src/components/WebViewPlus.vue
index 47d5d01..1d54046 100644
--- a/src/components/WebViewPlus.vue
+++ b/src/components/WebViewPlus.vue
@@ -1,11 +1,12 @@
 <template>
-  <web-view :src="src" @message="viewMessage" />
+  <web-view :src="src" @message="viewMessage" :allow="allow"/>
 </template>
 
 <script setup>
+
+const allow = "accelerometer;ambient-light-sensor;autoplay;battery;camera;clipboard-read;clipboard-write;cross-origin-isolated;display-capture;document-domain;encrypted-media;execution-while-not-rendered;execution-while-out-of-viewport;fullscreen;gamepad;geolocation;gyroscope;hid;idle-detection;local-fonts;magnetometer;microphone;midi;payment;picture-in-picture;publickey-credentials-get;screen-wake-lock;serial;speaker-selection;storage-access;sync-xhr;usb;web-share;xr-spatial-tracking"
 const src = defineModel("src");
 const emit = defineEmits(["webMessage"]);
-
 function viewMessage(event) {
   messageFun({
     data: {
@@ -16,11 +17,12 @@
     },
   });
 }
+
 // WEB_INVOKE_APPSERVICE
 function messageFun(e) {
   if (e.data.type === "WEB_INVOKE_APPSERVICE") {
     if (e.data.data.arg.type === "tokenExpired") {
-      return uni.redirectTo({
+      return uni.reLaunch({
         url: "/pages/login/index",
       });
     }

--
Gitblit v1.9.3