Skip to content

Commit

Permalink
perf:导出的离线Html文档引用CDN源替换为国内的源
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoymin committed Dec 9, 2023
1 parent 3f69d7b commit eca5ecf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export function getDocumentVueTemplates(title, resumecss, dataStr) {
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>${title}</title>
<link rel="stylesheet" href="https://unpkg.com/ant-design-vue@1.4.10/dist/antd.min.css" />
<link rel="stylesheet" href="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/ant-design-vue/1.7.8/antd.min.css" />
<style>
${resumecss}
</style>
Expand Down Expand Up @@ -333,8 +333,9 @@ export function getDocumentVueTemplates(title, resumecss, dataStr) {
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/antd.min.js"></script>
<script src="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/vue/2.6.9/vue.js"></script>
<script src="https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/ant-design-vue/1.7.8/antd.min.js"></script>
<script type="text/javascript">
function getData(){
var datas=${dataStr};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export function getDocumentVueTemplatesUS(title, resumecss, dataStr) {
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>${title}</title>
<link rel="stylesheet" href="https://unpkg.com/ant-design-vue@1.4.10/dist/antd.min.css" />
<link rel="stylesheet" href="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/ant-design-vue/1.7.8/antd.min.css" />
<style>
${resumecss}
</style>
Expand Down Expand Up @@ -333,8 +333,8 @@ export function getDocumentVueTemplatesUS(title, resumecss, dataStr) {
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.9/dist/vue.js"></script>
<script src="https://cdn.jsdelivr.net/npm/ant-design-vue@1.4.10/dist/antd.min.js"></script>
<script src="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/vue/2.6.9/vue.js"></script>
<script src="https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/ant-design-vue/1.7.8/antd.min.js"></script>
<script type="text/javascript">
function getData(){
var datas=${dataStr};
Expand Down
4 changes: 2 additions & 2 deletions knife4j-vue/src/layouts/BasicLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ export default {
beforeCreate() { },
created() {
//this.initSpringDocOpenApi();
//this.initKnife4jSpringUi();
this.initKnife4jInsight();
this.initKnife4jSpringUi();
//this.initKnife4jInsight();
//this.initKnife4jJFinal();
//this.initKnife4jFront();
this.initI18n();
Expand Down

0 comments on commit eca5ecf

Please sign in to comment.