perf: 去掉刷新提示及前端报错
This commit is contained in:
parent
63534d3eb5
commit
cc24ff22e9
@ -118,7 +118,6 @@ export default {
|
|||||||
let route = this.readOnly ? 'viewer' : 'index';
|
let route = this.readOnly ? 'viewer' : 'index';
|
||||||
let theme = this.themeIsDark ? 'dark' : 'light'
|
let theme = this.themeIsDark ? 'dark' : 'light'
|
||||||
this.url = $A.originUrl('js/drawio/' + route + '.html?lang=' + language + '&theme=' + theme + '&dev=1');
|
this.url = $A.originUrl('js/drawio/' + route + '.html?lang=' + language + '&theme=' + theme + '&dev=1');
|
||||||
console.log('this.url',this.url);
|
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
window.addEventListener('message', this.handleMessage)
|
window.addEventListener('message', this.handleMessage)
|
||||||
|
@ -4,13 +4,13 @@
|
|||||||
"description": "diagrams.net is a completely free diagram editor",
|
"description": "diagrams.net is a completely free diagram editor",
|
||||||
"icons": [
|
"icons": [
|
||||||
{
|
{
|
||||||
"src": "/images/android-chrome-196x196.png",
|
"src": "../images/android-chrome-196x196.png",
|
||||||
"sizes": "196x196",
|
"sizes": "196x196",
|
||||||
"type": "image/png",
|
"type": "image/png",
|
||||||
"purpose": "any maskable"
|
"purpose": "any maskable"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"src": "/images/android-chrome-512x512.png",
|
"src": "../images/android-chrome-512x512.png",
|
||||||
"sizes": "512x512",
|
"sizes": "512x512",
|
||||||
"type": "image/png"
|
"type": "image/png"
|
||||||
}
|
}
|
||||||
|
@ -930,10 +930,10 @@ App.main = function(callback, createUi)
|
|||||||
mxscript(App.DROPBOX_URL, function()
|
mxscript(App.DROPBOX_URL, function()
|
||||||
{
|
{
|
||||||
// Must load this after the dropbox SDK since they use the same namespace
|
// Must load this after the dropbox SDK since they use the same namespace
|
||||||
mxscript(App.DROPINS_URL, function()
|
// mxscript(App.DROPINS_URL, function()
|
||||||
{
|
// {
|
||||||
DrawDropboxClientCallback();
|
// DrawDropboxClientCallback();
|
||||||
}, 'dropboxjs', App.DROPBOX_APPKEY);
|
// }, 'dropboxjs', App.DROPBOX_APPKEY);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// Disables client
|
// Disables client
|
||||||
|
@ -3404,10 +3404,10 @@ EditorUi.prototype.addBeforeUnloadListener = function()
|
|||||||
// This must be disabled during save and image export
|
// This must be disabled during save and image export
|
||||||
window.onbeforeunload = mxUtils.bind(this, function()
|
window.onbeforeunload = mxUtils.bind(this, function()
|
||||||
{
|
{
|
||||||
if (!this.editor.isChromelessView())
|
// if (!this.editor.isChromelessView())
|
||||||
{
|
// {
|
||||||
return this.onBeforeUnload();
|
// return this.onBeforeUnload();
|
||||||
}
|
// }
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user