Skip to content

Commit

Permalink
ci: 修复:文档网站图片丢失问题,模拟器访问404
Browse files Browse the repository at this point in the history
修复:文档网站图片丢失问题,模拟器访问404
  • Loading branch information
hewx815 committed Jul 26, 2023
1 parent a570562 commit db9bf4d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .vitepress/components/Preview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
*/
import closeSvg from '../static/close.svg';
import phoneSvg from '../static/phone.svg';
import { defineProps, computed, getCurrentInstance, ref, onMounted } from 'vue';
const props = defineProps({
Expand Down Expand Up @@ -83,7 +84,7 @@ onMounted(() => {
// iframe src
const url = computed(() => {
const baseUrl = process.env.NODE_ENV === 'production' ? 'https://preview-vue2.h-uni.hewxing.cn/#/' : "http://localhost:8080/#/";
const baseUrl = process.env.NODE_ENV === 'production' ? 'https://h-uni.hewxing.cn/preview-vue2/#/' : "http://localhost:8080/#/";
return baseUrl + (previewBtnPath.value ? previewBtnPath.value : props.path);
});
Expand Down
7 changes: 3 additions & 4 deletions .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ import utils from './sidebar/utils';
const CurrentPath = path.dirname(fileURLToPath(import.meta.url));
export default defineConfig({
lang: 'zh-CN',
outDir: path.resolve(CurrentPath, '../website/doc'),
srcExclude: ['dist/npm/**/*'],
assetsDir: './static',
outDir: path.resolve(CurrentPath, '../website'),
srcExclude: ['dist/**/*'],
title: 'h-uni',
lastUpdated: true,
cleanUrls: true,
Expand Down Expand Up @@ -39,7 +38,7 @@ export default defineConfig({
text: '帮助我改善此页面',
},

logo: '/.vitepress/static/logo.png',
logo: 'http://static.hewxing.cn/h-uni/logo/logo.png',
search: {
provider: 'local',
},
Expand Down
5 changes: 5 additions & 0 deletions for-vue2/src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,10 @@
},
"mp-qq": {
"usingComponents": true
},
"h5": {
"router": {
"base": "/preview-vue2/"
}
}
}
7 changes: 1 addition & 6 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ hero:
name: "h-uni"
text: "uniapp工具库"
tagline: 内含uniapp组件,各种工具
image: ./.vitepress/static/logo-shadow.png
image: "http://static.hewxing.cn/h-uni/logo/logo-shadow.png"
actions:
- theme: brand
text: 开始
Expand All @@ -17,7 +17,6 @@ hero:
text: 工具库文档
link: /for-vue2/utils/Hhttp


features:
- title:
details: 🏀🏀🏀🏀🏀🏀🏀🏀🏀🏀🏀🏀🏀🏀🏀🏀🏀🏀🏀🏀🏀🏀
Expand All @@ -27,8 +26,4 @@ features:
details: 🏀🏀🏀🏀🏀🏀🏀🏀🏀🏀🏀🏀🏀🏀🏀🏀🏀🏀🏀🏀🏀🏀
- title:
details: 🏀🏀🏀🏀🏀🏀🏀🏀🏀🏀🏀🏀🏀🏀🏀🏀🏀🏀🏀🏀🏀🏀



---

0 comments on commit db9bf4d

Please sign in to comment.