Browse Source

增加是否需要显示相机图片的全局属性

master
sige 1 year ago
parent
commit
3c79c6a050
  1. 8
      src/web/src/stores/AppStore.js

8
src/web/src/stores/AppStore.js

@ -6,6 +6,8 @@ export const useAppStore = defineStore('AppStore', {
accessToken : null, accessToken : null,
// is device ready // is device ready
isDeviceReady : false, isDeviceReady : false,
// is camera enable
isCameraEnable : false,
}; };
}, },
@ -18,6 +20,10 @@ export const useAppStore = defineStore('AppStore', {
// set is device ready // set is device ready
setIsDeviceReady( isReady ) { setIsDeviceReady( isReady ) {
this.isDeviceReady = isReady; this.isDeviceReady = isReady;
}
},
// set camera enable
setCameraEnable( isEnable ) {
this.isCameraEnable = isEnable;
},
}, },
}) })
Loading…
Cancel
Save