Procházet zdrojové kódy

fix: 编辑保存成功后跳转到书籍列表页

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
MyFramework User před 3 měsíci
rodič
revize
fd6660c031

+ 2 - 2
my-uniapp-vue3/src/pages/book-generator/create.vue

@@ -706,8 +706,8 @@ async function createNewBook() {
       });
       });
       uni.showToast({ title: '更新成功', icon: 'success' });
       uni.showToast({ title: '更新成功', icon: 'success' });
       setTimeout(() => {
       setTimeout(() => {
-        uni.navigateBack();
-      }, 1500);
+        uni.redirectTo({ url: '/pages/book-generator/index' });
+      }, 800);
     } catch (e: any) {
     } catch (e: any) {
       uni.showToast({ title: e.message || '更新失败', icon: 'none' });
       uni.showToast({ title: e.message || '更新失败', icon: 'none' });
     } finally {
     } finally {