|
@@ -15,24 +15,26 @@ export default defineComponent({
|
|
const Authorization = userStore.getToken || '';
|
|
const Authorization = userStore.getToken || '';
|
|
const iframeRef = ref();
|
|
const iframeRef = ref();
|
|
console.log(Authorization);
|
|
console.log(Authorization);
|
|
|
|
+ const notationOpenCreate = sessionStorage.getItem('notation-open-create');
|
|
|
|
+ const openCreateUrl = notationOpenCreate == '1' ? '&addShow=1' : '';
|
|
const data = reactive({
|
|
const data = reactive({
|
|
src: `${
|
|
src: `${
|
|
/(192|localhost)/.test(location.origin)
|
|
/(192|localhost)/.test(location.origin)
|
|
? // ?
|
|
? // ?
|
|
- // 'https://test.lexiaoya.cn'
|
|
|
|
- 'http://localhost:3050'
|
|
|
|
- : location.origin
|
|
|
|
- }/notation/#/create?Authorization=${Authorization}`
|
|
|
|
|
|
+ 'https://test.lexiaoya.cn'
|
|
|
|
+ : // 'http://localhost:3050'
|
|
|
|
+ location.origin
|
|
|
|
+ }/notation/#/create?Authorization=${Authorization}${openCreateUrl}`
|
|
// src: `http://localhost:3050/#/create?Authorization=${Authorization}`
|
|
// src: `http://localhost:3050/#/create?Authorization=${Authorization}`
|
|
});
|
|
});
|
|
- const fscreen=()=> {
|
|
|
|
- const el = document.documentElement as any
|
|
|
|
- //进入全屏
|
|
|
|
- (el.requestFullscreen && el.requestFullscreen()) ||
|
|
|
|
|
|
+ const fscreen = () => {
|
|
|
|
+ const el = document.documentElement as any;
|
|
|
|
+ //进入全屏
|
|
|
|
+ (el.requestFullscreen && el.requestFullscreen()) ||
|
|
(el.mozRequestFullScreen && el.mozRequestFullScreen()) ||
|
|
(el.mozRequestFullScreen && el.mozRequestFullScreen()) ||
|
|
(el.webkitRequestFullscreen && el.webkitRequestFullscreen()) ||
|
|
(el.webkitRequestFullscreen && el.webkitRequestFullscreen()) ||
|
|
- (el.msRequestFullscreen && el.msRequestFullscreen())
|
|
|
|
- }
|
|
|
|
|
|
+ (el.msRequestFullscreen && el.msRequestFullscreen());
|
|
|
|
+ };
|
|
const handleOpen = (e: MessageEvent) => {
|
|
const handleOpen = (e: MessageEvent) => {
|
|
console.log(e.data, 'data');
|
|
console.log(e.data, 'data');
|
|
if (e.data.api === 'notation_open') {
|
|
if (e.data.api === 'notation_open') {
|
|
@@ -42,12 +44,12 @@ export default defineComponent({
|
|
previewParams.value = {
|
|
previewParams.value = {
|
|
url: e.data.url
|
|
url: e.data.url
|
|
};
|
|
};
|
|
- fscreen()
|
|
|
|
|
|
+ fscreen();
|
|
} else {
|
|
} else {
|
|
window.open(e.data.url);
|
|
window.open(e.data.url);
|
|
}
|
|
}
|
|
} else if (e.data.api === 'notation_exit') {
|
|
} else if (e.data.api === 'notation_exit') {
|
|
- console.log('进来')
|
|
|
|
|
|
+ console.log('进来');
|
|
|
|
|
|
removeVisiable.value = true;
|
|
removeVisiable.value = true;
|
|
}
|
|
}
|
|
@@ -100,13 +102,14 @@ export default defineComponent({
|
|
);
|
|
);
|
|
if (state.application) {
|
|
if (state.application) {
|
|
document.exitFullscreen
|
|
document.exitFullscreen
|
|
- ? document.exitFullscreen()
|
|
|
|
- : document.mozCancelFullScreen
|
|
|
|
- ? document.mozCancelFullScreen()
|
|
|
|
- : document.webkitExitFullscreen
|
|
|
|
- ? document.webkitExitFullscreen()
|
|
|
|
- : ''
|
|
|
|
- }}}>
|
|
|
|
|
|
+ ? document.exitFullscreen()
|
|
|
|
+ : document.mozCancelFullScreen
|
|
|
|
+ ? document.mozCancelFullScreen()
|
|
|
|
+ : document.webkitExitFullscreen
|
|
|
|
+ ? document.webkitExitFullscreen()
|
|
|
|
+ : '';
|
|
|
|
+ }
|
|
|
|
+ }}>
|
|
确定
|
|
确定
|
|
</NButton>
|
|
</NButton>
|
|
<NButton round onClick={() => (removeVisiable.value = false)}>
|
|
<NButton round onClick={() => (removeVisiable.value = false)}>
|