|
@@ -192,8 +192,7 @@ export default defineComponent({
|
|
|
return;
|
|
|
}
|
|
|
// 判断是否在应用里面
|
|
|
- console.log(state.application, 'state.application');
|
|
|
- if (state.application) {
|
|
|
+ if (window.matchMedia('(display-mode: standalone)').matches) {
|
|
|
forms.previewModal = true;
|
|
|
fscreen()
|
|
|
forms.previewParams = {
|
|
@@ -436,7 +435,7 @@ export default defineComponent({
|
|
|
<AttendClass
|
|
|
onClose={() => (forms.showAttendClass = false)}
|
|
|
onPreview={(item: any) => {
|
|
|
- if (state.application) {
|
|
|
+ if (window.matchMedia('(display-mode: standalone)').matches) {
|
|
|
forms.previewModal = true;
|
|
|
forms.previewParams = {
|
|
|
...item
|