mirror of
https://github.com/ZeroCatDev/Classworks.git
synced 2026-02-03 23:23:09 +00:00
feat: 更新作业编辑和考勤管理对话框以支持强制一体机UI模式
This commit is contained in:
parent
1325038fa0
commit
f3534f9411
@ -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];
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user