We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70bec75 commit ea040a7Copy full SHA for ea040a7
2 files changed
.github/workflows/main.yml
@@ -13,6 +13,12 @@ jobs:
13
run: npm install
14
- name: 打包
15
run: npm run build
16
+ - name: 產生 SPA fallback 與網域設定
17
+ run: |
18
+ cp dist/index.html dist/404.html
19
+ if [ -f CNAME ]; then
20
+ cp CNAME dist/CNAME
21
+ fi
22
- name: 發布分支 Web-Page
23
uses: JamesIves/github-pages-deploy-action@v4
24
with:
src/router/index.js
@@ -21,6 +21,10 @@ const router = createRouter({
name: 'privacy',
component: PrivacyView,
},
+ {
25
+ path: '/:pathMatch(.*)*',
26
+ redirect: '/',
27
+ },
28
],
29
})
30
0 commit comments