|
@@ -1,15 +1,13 @@
|
|
|
import { defineComponent, onMounted, onUnmounted, ref } from 'vue';
|
|
|
import { useUserStore } from '/src/store/modules/users';
|
|
|
import styles from './index.module.less';
|
|
|
-import { modalClickMask, state } from '/src/state';
|
|
|
+import { modalClickMask } from '/src/state';
|
|
|
import { NButton, NModal, NSpace, NSpin } from 'naive-ui';
|
|
|
-import { eventGlobal } from '/src/utils';
|
|
|
-import { useRouter } from 'vue-router';
|
|
|
+import { eventGlobal, exitFullscreen } from '/src/utils';
|
|
|
import { getHttpOrigin } from '/src/helpers/utils';
|
|
|
export default defineComponent({
|
|
|
name: 'notation-a',
|
|
|
setup() {
|
|
|
- const router = useRouter();
|
|
|
const show = ref(false);
|
|
|
const key = new Date().getTime();
|
|
|
const previewModal = ref(false);
|
|
@@ -25,9 +23,7 @@ export default defineComponent({
|
|
|
const data = {
|
|
|
src: `${
|
|
|
/(192|localhost)/.test(location.origin)
|
|
|
- ? // ?
|
|
|
- // 'https://test.lexiaoya.cn'
|
|
|
- 'http://localhost:3050'
|
|
|
+ ? 'https://test.lexiaoya.cn'
|
|
|
: getHttpOrigin()
|
|
|
}/notation/?t=${Date.now()}#/create?v=${Date.now()}&Authorization=${Authorization}${openCreateUrl}`
|
|
|
// src: `http://localhost:3050/#/create?Authorization=${Authorization}`
|
|
@@ -110,15 +106,7 @@ export default defineComponent({
|
|
|
},
|
|
|
'*'
|
|
|
);
|
|
|
- if (state.application) {
|
|
|
- document.exitFullscreen
|
|
|
- ? document.exitFullscreen()
|
|
|
- : document.mozCancelFullScreen
|
|
|
- ? document.mozCancelFullScreen()
|
|
|
- : document.webkitExitFullscreen
|
|
|
- ? document.webkitExitFullscreen()
|
|
|
- : '';
|
|
|
- }
|
|
|
+ exitFullscreen()
|
|
|
}}>
|
|
|
确定
|
|
|
</NButton>
|