feat: 更新作业编辑和考勤管理对话框以支持强制一体机UI模式

This commit is contained in:
Sunwuyuan
2026-01-11 16:11:19 +08:00
parent 1325038fa0
commit f3534f9411
2 changed files with 19 additions and 2 deletions
+9 -1
View File
@@ -277,7 +277,7 @@ export default {
emits: ["update:modelValue", "save"],
setup() {
const { mobile } = useDisplay();
return { isMobile: mobile };
return { mobile };
},
data() {
return {
@@ -290,6 +290,14 @@ export default {
};
},
computed: {
isMobile() {
// 如果启用了强制一体机UI模式,返回false(使用桌面UI)
const forceDesktopMode = getSetting('display.forceDesktopMode');
if (forceDesktopMode) {
return false;
}
return this.mobile;
},
dialogVisible: {
get() {
return this.modelValue;
@@ -244,6 +244,7 @@
<script>
import { pinyin } from "pinyin-pro";
import { useDisplay } from "vuetify";
import { getSetting } from "@/utils/settings";
export default {
name: "AttendanceManagementDialog",
@@ -268,7 +269,7 @@ export default {
emits: ["update:modelValue", "save", "change"],
setup() {
const { mobile } = useDisplay();
return { isMobile: mobile };
return { mobile };
},
data() {
return {
@@ -277,6 +278,14 @@ export default {
};
},
computed: {
isMobile() {
// 如果启用了强制一体机UI模式,返回false(使用桌面UI)
const forceDesktopMode = getSetting('display.forceDesktopMode');
if (forceDesktopMode) {
return false;
}
return this.mobile;
},
filteredStudents() {
let students = [...this.studentList];