Skip to content

Commit ac71663

Browse files
chore(uniapp-chat): fix live demo of preview site (#4552)
* chore(uniapp-chat): fix live demo of preview site * chore: update t-comm --------- Co-authored-by: novlan1 <1576271227@qq.com>
1 parent 74fdbf4 commit ac71663

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/preview-site-build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,14 @@ jobs:
101101

102102
- run: pnpm install
103103

104+
- run: pnpm run uniapp build:npm
105+
104106
- run: pnpm -C packages/tdesign-uniapp-chat/site run site:preview
105107

108+
- run: |
109+
pnpm -C packages/tdesign-uniapp/example run build:h5 --mode=preview
110+
mv packages/tdesign-uniapp//site/dist/live packages/tdesign-uniapp-chat/site/dist/
111+
106112
- uses: actions/upload-artifact@v4
107113
with:
108114
name: tdesign-uniapp-chat-site

packages/tdesign-uniapp-chat/site/web/plugins/plugin-tdoc/md-to-vue.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ const DEFAULT_EN_TABS = [
1919
];
2020

2121
function getMobilePrefix(mode) {
22+
if (mode === 'production') {
23+
return 'https://static.tdesign.tencent.com/uniapp/live';
24+
}
2225
if (mode === 'preview') {
23-
return 'https://tdesign.tencent.com/uniapp/live';
26+
return '/live/index.html';
2427
}
25-
2628
return '/uniapp/live';
2729
}
2830

pnpm-workspace.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ catalog:
138138
stylelint-config-common: 1.0.10
139139
stylelint-config-standard: ^39.0.1
140140
stylelint-less: ^3.0.1
141-
t-comm: ^3.3.3
141+
t-comm: 3.3.15
142142
tdesign-uniapp-auto-import-resolver: 0.1.3
143143
tinycolor2: ^1.6.0
144144
tslib: ^2.8.1

0 commit comments

Comments
 (0)