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