Skip to content

Commit

Permalink
Merge pull request #294 from lljj-x/v3
Browse files Browse the repository at this point in the history
V3
  • Loading branch information
lljj-x committed May 1, 2023
2 parents 1d2c395 + e8d6580 commit a8064d5
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions packages/demo/demo-v3/src/pages/index/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,25 @@
<script src="//lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/vue-router/4.0.13/vue-router.global.min.js"></script>
<script src="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/element-plus/2.0.4/index.full.min.js"></script>

<script src="//lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/monaco-editor/0.20.0/min/vs/loader.js"></script>
<script src="//lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/monaco-editor/0.30.0/min/vs/loader.js"></script>
<script>
require.config({ paths: { 'vs': '//lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/monaco-editor/0.20.0/min/vs/' }});
// try {
// window.MonacoEnvironment = {
// getWorkerUrl: function(workerId, label) {
// const code = encodeURIComponent(`
// self.MonacoEnvironment = {
// baseUrl: 'https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/monaco-editor/0.20.0/min/'
// };
// importScripts('https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/monaco-editor/0.20.0/min/vs/base/worker/workerMain.js');
// `);
//
// return 'data:text/javascript;charset=utf-8,' + code;
// }
// };
// } catch (e) {
// // nothing ....
// }
require.config({ paths: { 'vs': '//lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/monaco-editor/0.30.0/min/vs/' }});
try {
window.MonacoEnvironment = {
getWorkerUrl: function(workerId, label) {
const code = encodeURIComponent(`
self.MonacoEnvironment = {
baseUrl: 'https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/monaco-editor/0.20.0/min/'
};
importScripts('https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/monaco-editor/0.20.0/min/vs/base/worker/workerMain.js');
`);

return 'data:text/javascript;charset=utf-8,' + code;
}
};
} catch (e) {
// nothing ....
}
</script>
</body>
</html>

0 comments on commit a8064d5

Please sign in to comment.