Skip to content

Commit 1c92b5a

Browse files
committed
chore: 触发更新
1 parent b029e96 commit 1c92b5a

File tree

3 files changed

+9
-13
lines changed

3 files changed

+9
-13
lines changed

.github/workflows/docs.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ jobs:
2525
- recursive: true
2626
args: [--frozen-lockfile, --strict-peer-dependencies]
2727
28+
# 👉 新增的 step:cd example && npm ci
29+
- name: install example deps
30+
if: env.GIT_DIFF
31+
run: |
32+
cd example
33+
npm cache clean --force
34+
npm ci --legacy-peer-deps --unsafe-perm
35+
2836
# vuepress生成最终文档
2937
- name: generate docs file
3038
if: env.GIT_DIFF

example/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ configProvider({
1818
})
1919

2020
// app.js
21-
// 触发 main 分支 docs 更新 4
21+
// 触发 main 分支 docs 更新 8
2222
createApp({})
2323

2424
if (isIframe) {

example/components/theme-container/index.mpx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,8 @@
77
<script>
88
import { createComponent } from '@mpxjs/core'
99
import { useTheme } from '../../common/theme'
10-
import { REACTHOOKSEXEC } from '@mpxjs/core'
11-
import { useContext } from 'react'
12-
import { VarContext } from '@mpxjs/webpack-plugin/lib/runtime/components/react/dist/context'
1310

1411
createComponent({
15-
data: {
16-
varContext: {}
17-
},
18-
[REACTHOOKSEXEC]() {
19-
const varContext = useContext(VarContext)
20-
if (this.varContext !== varContext) {
21-
this.varContext = varContext
22-
}
23-
},
2412
setup() {
2513
const { themeType } = useTheme()
2614
return {

0 commit comments

Comments
 (0)