|
@@ -195,11 +195,14 @@ export default defineComponent({
|
|
console.log(state.application, 'state.application');
|
|
console.log(state.application, 'state.application');
|
|
if (state.application) {
|
|
if (state.application) {
|
|
forms.previewModal = true;
|
|
forms.previewModal = true;
|
|
|
|
+ fscreen()
|
|
forms.previewParams = {
|
|
forms.previewParams = {
|
|
type: 'preview',
|
|
type: 'preview',
|
|
subjectId: prepareStore.getSubjectId,
|
|
subjectId: prepareStore.getSubjectId,
|
|
detailId: prepareStore.getSelectKey
|
|
detailId: prepareStore.getSelectKey
|
|
};
|
|
};
|
|
|
|
+
|
|
|
|
+
|
|
} else {
|
|
} else {
|
|
const { href } = router.resolve({
|
|
const { href } = router.resolve({
|
|
path: '/attend-class',
|
|
path: '/attend-class',
|
|
@@ -212,7 +215,16 @@ export default defineComponent({
|
|
window.open(href, +new Date() + '');
|
|
window.open(href, +new Date() + '');
|
|
}
|
|
}
|
|
};
|
|
};
|
|
-
|
|
|
|
|
|
+ const fscreen=()=> {
|
|
|
|
+ const el = document.documentElement
|
|
|
|
+ const isFullscreen = document.fullScreen || document.mozFullScreen || document.webkitIsFullScreen
|
|
|
|
+ if (!isFullscreen) {
|
|
|
|
+ //进入全屏
|
|
|
|
+ (el.requestFullscreen && el.requestFullscreen()) ||
|
|
|
|
+ (el.mozRequestFullScreen && el.mozRequestFullScreen()) ||
|
|
|
|
+ (el.webkitRequestFullscreen && el.webkitRequestFullscreen()) ||
|
|
|
|
+ (el.msRequestFullscreen && el.msRequestFullscreen())
|
|
|
|
+ } }
|
|
// 单个删除
|
|
// 单个删除
|
|
const onRemove = async (item: any) => {
|
|
const onRemove = async (item: any) => {
|
|
try {
|
|
try {
|