File tree Expand file tree Collapse file tree
doc/main/example/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ VITE_BASEROUTER=tiny-charts
22VITE_PLAYGROUND_URL=tiny-charts-playground
33VITE_PUBLISH_URL=/
44VITE_HDESIGN_URL=${HDESIGN_URL}
5+ VITE_OPENTINY_URL_PREFIX=/
56
67VITE_BASECOPYRIGHTS=HUI-Charts
78# 用于替换引入huicharts包的路径
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ VITE_BASEROUTER=tiny-charts
22VITE_PLAYGROUND_URL=tiny-charts-playground
33VITE_PUBLISH_URL=//test-static-resource.obs.cn-north-7.ulanqab.huawei.com/tiny-charts-web-doc/${staticReleaseVersion}/
44VITE_HDESIGN_URL=${HDESIGN_URL}
5+ VITE_OPENTINY_URL_PREFIX=/
56
67# 用于替换文档中图表说明文字: OpenTiny-Charts
78VITE_BASECOPYRIGHTS=OpenTiny HUICharts
Original file line number Diff line number Diff line change 2222 - name : Build doc
2323 run : npm run build:opentiny
2424 env :
25- VITE_BASEROUTER : tiny-charts
25+ VITE_OPENTINY_URL_PREFIX : / tiny-charts/
2626 VITE_PUBLISH_URL : /tiny-charts/
2727 - name : Copy files
2828 run : |
Original file line number Diff line number Diff line change 3333 - name : Build doc
3434 run : npm run build:opentiny
3535 env :
36- VITE_BASEROUTER : tiny-charts
36+ VITE_OPENTINY_URL_PREFIX : / tiny-charts/
3737 VITE_PUBLISH_URL : //opentiny-assets.obs.cn-north-4.myhuaweicloud.com/tiny-charts-web-doc/${{ env.VERSION }}/
3838 - name : Copy files
3939 run : |
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ export default {
9393 if (window .self .name === ' hdesignFrame' ) {
9494 this .iframeSrc = ` ${ import .meta.env.VITE_HDESIGN_URL}/Example#/Example/${name }?theme=${this .currentTheme }`
9595 } else {
96- this.iframeSrc = ` / ${import .meta .env .VITE_BASEROUTER }/ Example#/Example/${name }?theme=${this .currentTheme }` ;
96+ this.iframeSrc = ` ${import .meta .env .VITE_OPENTINY_URL_PREFIX } Example#/Example/${name }?theme=${this .currentTheme }` ;
9797 }
9898 }
9999 },
You can’t perform that action at this time.
0 commit comments