Skip to content

Commit

Permalink
fix: debug
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohaodu committed Nov 6, 2023
1 parent 1d7bce6 commit e6a634d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Install Node.js
uses: actions/[email protected]
with:
node-version: "16.13.2"
node-version: '16.20.0'
- name: Install npm dependencies
run: npm install
- name: Run build task
Expand All @@ -23,9 +23,9 @@ jobs:
uses: easingthemes/[email protected]
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_KEY }}
ARGS: "-rltgoDzvO --delete"
SOURCE: ".output/"
REMOTE_HOST: "81.68.108.130"
ARGS: '-rltgoDzvO --delete'
SOURCE: '.output/'
REMOTE_HOST: '81.68.108.130'
REMOTE_USER: root
TARGET: "/home/blog" # 打包后的 dist 文件夹将放在
TARGET: '/home/blog' # 打包后的 dist 文件夹将放在
# EXCLUDE: "node_modules,.git,.github"
6 changes: 3 additions & 3 deletions pages/blogs/[blogPath].vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@

<script lang="ts" setup>
const router = useRouter();
const blogsTree = await $fetch('/api/blogsTree');
const initContent = await $fetch('/api/readblog', {
const blogsTree = (await $fetch('/api/blogsTree')) as any;
const initContent = (await $fetch('/api/readblog', {
params: {
path: `public/_${decodeURIComponent(router.currentRoute.value.fullPath.substring(1))}.md`,
},
});
})) as string;
const blogContent = ref(initContent);
const blogPath = ref('');
const active = computed(() => {
Expand Down
2 changes: 1 addition & 1 deletion server/api/github/commit/index.post.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {
import type {
RepoCreateBlobs,
RepoCreateCommit,
RepoCreateTree,
Expand Down

0 comments on commit e6a634d

Please sign in to comment.