Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
liangzhen
/
framework-tools-web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit dfec32a0
authored
Dec 11, 2023
by
songchangcheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新js库,修正原有apis.google.com链接
1 parent
9a128eb3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
package.json
public/drawio/js/diagramly/App.js
package.json
View file @
dfec32a
...
...
@@ -24,8 +24,8 @@
"@vue/cli-plugin-router"
:
"~5.0.0"
,
"@vue/cli-plugin-vuex"
:
"~5.0.0"
,
"@vue/cli-service"
:
"~5.0.0"
,
"node-sass"
:
"^
4.14
.1"
,
"sass-loader"
:
"^
7.3
.1"
,
"node-sass"
:
"^
6.0
.1"
,
"sass-loader"
:
"^
10.0
.1"
,
"vue-template-compiler"
:
"^2.6.14"
},
"browserslist"
:
[
...
...
public/drawio/js/diagramly/App.js
View file @
dfec32a
...
...
@@ -486,8 +486,8 @@ App.getStoredMode = function()
window
.
location
.
hash
==
''
)
||
(
window
.
location
.
hash
!=
null
&&
window
.
location
.
hash
.
substring
(
0
,
2
)
==
'#G'
))
{
//
mxscript('https://apis.google.com/js/api.js'); //二次开发 删除apis.google.com的加载过程,改为加载本地文件
mxscript
(
'js/api.js'
);
mxscript
(
'https://apis.google.com/js/api.js'
);
//二次开发 删除apis.google.com的加载过程,改为加载本地文件
//
mxscript('js/api.js');
}
// Keeps lazy loading for fallback to authenticated Google file if not public in loadFile
else
if
(
urlParams
[
'chrome'
]
==
'0'
&&
(
window
.
location
.
hash
==
null
||
...
...
@@ -884,8 +884,8 @@ App.main = function(callback, createUi)
(
urlParams
[
'embed'
]
==
'1'
&&
urlParams
[
'gapi'
]
==
'1'
))
&&
isSvgBrowser
&&
isLocalStorage
&&
(
document
.
documentMode
==
null
||
document
.
documentMode
>=
10
))))
{
//
mxscript('https://apis.google.com/js/api.js?onload=DrawGapiClientCallback', null, null, null, mxClient.IS_SVG);
mxscript
(
'js/api.js'
,
null
,
null
,
null
,
mxClient
.
IS_SVG
);
//二次开发,下载翻墙插件到本地
mxscript
(
'https://apis.google.com/js/api.js?onload=DrawGapiClientCallback'
,
null
,
null
,
null
,
mxClient
.
IS_SVG
);
//
mxscript('js/api.js', null, null, null, mxClient.IS_SVG);//二次开发,下载翻墙插件到本地
}
// Disables client
else
if
(
typeof
window
.
gapi
===
'undefined'
)
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment