From 0a34e41cd329facc2f43178dcc12e984276a007d Mon Sep 17 00:00:00 2001
From: zhenyuWang <13641039885@163.com>
Date: Wed, 9 Aug 2023 11:56:53 +0800
Subject: [PATCH] fix(store): reactive warning
---
App.uvue | 5 +-
pages/API/get-app/get-app.uvue | 12 ++-
.../get-current-pages/get-current-pages.uvue | 3 +-
.../get-launch-options-sync.uvue | 2 +-
pages/API/navigator/navigator.uvue | 8 +-
pages/API/navigator/new-page/new-page-1.uvue | 3 +-
pages/API/navigator/new-page/new-page-2.uvue | 8 +-
.../set-navigation-bar-color.uvue | 84 ++++++++++---------
store/index.uts | 2 +-
9 files changed, 72 insertions(+), 55 deletions(-)
diff --git a/App.uvue b/App.uvue
index 6496abf0..d482f92d 100644
--- a/App.uvue
+++ b/App.uvue
@@ -1,5 +1,6 @@
-
-
-
+ },
+ // 自动化测试
+ getLifeCycleNum(): number {
+ return state.lifeCycleNum
+ },
+ // 自动化测试
+ setLifeCycleNum(num: number) {
+ setLifeCycleNum(num)
+ },
+ },
+}
+
+
+
diff --git a/store/index.uts b/store/index.uts
index 09170b23..948ff461 100644
--- a/store/index.uts
+++ b/store/index.uts
@@ -1,4 +1,4 @@
-type State = {
+export type State = {
lifeCycleNum: number
}
--
GitLab