1
0
mirror of https://github.com/ZeroCatDev/Classworks.git synced 2026-02-04 07:53:11 +00:00

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

This commit is contained in:
Sunwuyuan 2026-01-11 16:11:19 +08:00
parent 1325038fa0
commit f3534f9411
No known key found for this signature in database
GPG Key ID: A6A54CF66F56BB64
2 changed files with 19 additions and 2 deletions

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() {
// UIfalse使UI
const forceDesktopMode = getSetting('display.forceDesktopMode');
if (forceDesktopMode) {
return false;
}
return this.mobile;
},
dialogVisible: {
get() {
return this.modelValue;

View File

@ -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() {
// UIfalse使UI
const forceDesktopMode = getSetting('display.forceDesktopMode');
if (forceDesktopMode) {
return false;
}
return this.mobile;
},
filteredStudents() {
let students = [...this.studentList];