feat: 添加强制桌面模式设置,优化移动端显示逻辑

This commit is contained in:
Sunwuyuan
2025-12-14 15:24:53 +08:00
parent 0d91c8844a
commit 4244f84b34
4 changed files with 22 additions and 7 deletions
+4 -5
View File
@@ -215,6 +215,10 @@ export default {
type: String,
default: "button",
},
isMobile: {
type: Boolean,
default: false,
},
isEditingDisabled: {
type: Boolean,
default: false,
@@ -229,11 +233,6 @@ export default {
},
},
emits: ["open-dialog", "open-attendance", "disabled-click"],
computed: {
isMobile() {
return this.$vuetify.display.mobile;
},
},
mounted() {
this.resizeObserver = new ResizeObserver(() => {
this.resizeAllGridItems();
@@ -28,6 +28,9 @@
<v-divider class="my-2"/>
<setting-item :setting-key="'display.showExamScheduleButton'"/>
<v-divider class="my-2"/>
<setting-item :setting-key="'display.forceDesktopMode'"/>
</v-list>
</settings-card>
</template>