From 3c79c6a05005e3f4c5c987d9550edc98391b1e33 Mon Sep 17 00:00:00 2001 From: sige Date: Thu, 29 Feb 2024 16:34:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=98=AF=E5=90=A6=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E6=98=BE=E7=A4=BA=E7=9B=B8=E6=9C=BA=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E7=9A=84=E5=85=A8=E5=B1=80=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/web/src/stores/AppStore.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/web/src/stores/AppStore.js b/src/web/src/stores/AppStore.js index cf4a087..5034d05 100644 --- a/src/web/src/stores/AppStore.js +++ b/src/web/src/stores/AppStore.js @@ -6,6 +6,8 @@ export const useAppStore = defineStore('AppStore', { accessToken : null, // is device ready isDeviceReady : false, + // is camera enable + isCameraEnable : false, }; }, @@ -18,6 +20,10 @@ export const useAppStore = defineStore('AppStore', { // set is device ready setIsDeviceReady( isReady ) { this.isDeviceReady = isReady; - } + }, + // set camera enable + setCameraEnable( isEnable ) { + this.isCameraEnable = isEnable; + }, }, }) \ No newline at end of file