perf: 去掉刷新提示及前端报错

This commit is contained in:
韦荣超 2022-02-12 15:02:10 +08:00
parent 63534d3eb5
commit cc24ff22e9
8 changed files with 1008 additions and 1009 deletions

View File

@ -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)

View File

@ -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"
} }

View File

@ -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

View File

@ -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();
} // }
}); });
}; };