From 3fd73dd8ace1b1babf1ababa8acdd00f91987e30 Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Wed, 19 Jun 2024 20:00:57 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E8=A1=A5=E5=85=85=20onError=20?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.uvue | 3 +- .../throw-error/throw-error-composition.uvue | 38 +++++++++------ .../throw-error/throw-error-options.uvue | 8 +++- pages/error/throw-error/throw-error.test.js | 47 +++++++++++++++++++ 4 files changed, 80 insertions(+), 16 deletions(-) create mode 100644 pages/error/throw-error/throw-error.test.js diff --git a/App.uvue b/App.uvue index 6e0f1a4..d217cca 100644 --- a/App.uvue +++ b/App.uvue @@ -65,7 +65,8 @@ }, // #endif onError: function(error: any) { - console.log('App Error', error) + console.log('App Error', error) + setLifeCycleNum(state.lifeCycleNum + 100) }, methods: { checkLaunchPath() : boolean { diff --git a/pages/error/throw-error/throw-error-composition.uvue b/pages/error/throw-error/throw-error-composition.uvue index 1ee6894..ebfeb93 100644 --- a/pages/error/throw-error/throw-error-composition.uvue +++ b/pages/error/throw-error/throw-error-composition.uvue @@ -1,14 +1,24 @@ - - - + + + \ No newline at end of file diff --git a/pages/error/throw-error/throw-error-options.uvue b/pages/error/throw-error/throw-error-options.uvue index 7f23482..47e015f 100644 --- a/pages/error/throw-error/throw-error-options.uvue +++ b/pages/error/throw-error/throw-error-options.uvue @@ -1,10 +1,12 @@