|
@@ -19,20 +19,20 @@ export default defineComponent({
|
|
|
src: `${
|
|
|
/(192|localhost)/.test(location.origin)
|
|
|
? // ?
|
|
|
- // 'https://test.lexiaoya.cn'
|
|
|
- 'http://localhost:3050'
|
|
|
- : location.origin
|
|
|
+ 'https://test.lexiaoya.cn'
|
|
|
+ : // 'http://localhost:3050'
|
|
|
+ location.origin
|
|
|
}/notation/#/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.webkitRequestFullscreen && el.webkitRequestFullscreen()) ||
|
|
|
- (el.msRequestFullscreen && el.msRequestFullscreen())
|
|
|
- }
|
|
|
+ (el.msRequestFullscreen && el.msRequestFullscreen());
|
|
|
+ };
|
|
|
const handleOpen = (e: MessageEvent) => {
|
|
|
console.log(e.data, 'data');
|
|
|
if (e.data.api === 'notation_open') {
|
|
@@ -42,12 +42,12 @@ export default defineComponent({
|
|
|
previewParams.value = {
|
|
|
url: e.data.url
|
|
|
};
|
|
|
- fscreen()
|
|
|
+ fscreen();
|
|
|
} else {
|
|
|
window.open(e.data.url);
|
|
|
}
|
|
|
} else if (e.data.api === 'notation_exit') {
|
|
|
- console.log('进来')
|
|
|
+ console.log('进来');
|
|
|
|
|
|
removeVisiable.value = true;
|
|
|
}
|
|
@@ -100,13 +100,14 @@ export default defineComponent({
|
|
|
);
|
|
|
if (state.application) {
|
|
|
document.exitFullscreen
|
|
|
- ? document.exitFullscreen()
|
|
|
- : document.mozCancelFullScreen
|
|
|
- ? document.mozCancelFullScreen()
|
|
|
- : document.webkitExitFullscreen
|
|
|
- ? document.webkitExitFullscreen()
|
|
|
- : ''
|
|
|
- }}}>
|
|
|
+ ? document.exitFullscreen()
|
|
|
+ : document.mozCancelFullScreen
|
|
|
+ ? document.mozCancelFullScreen()
|
|
|
+ : document.webkitExitFullscreen
|
|
|
+ ? document.webkitExitFullscreen()
|
|
|
+ : '';
|
|
|
+ }
|
|
|
+ }}>
|
|
|
确定
|
|
|
</NButton>
|
|
|
<NButton round onClick={() => (removeVisiable.value = false)}>
|