Skip to content

Commit 953cb73

Browse files
committed
chore: update
1 parent eb709a8 commit 953cb73

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,19 +76,19 @@ Markdown 文档自动即时渲染为微信图文,让你不再为微信文章
7676
示例代码:
7777

7878
```js
79-
const { file, util, okCb, errCb } = CUSTOM_ARG;
80-
const param = new FormData();
81-
param.append(`file`, file);
79+
const { file, util, okCb, errCb } = CUSTOM_ARG
80+
const param = new FormData()
81+
param.append(`file`, file)
8282
util.axios
8383
.post(`http://127.0.0.1:9000/upload`, param, {
84-
headers: { "Content-Type": `multipart/form-data` },
84+
headers: { 'Content-Type': `multipart/form-data` },
8585
})
8686
.then((res) => {
87-
okCb(res.url);
87+
okCb(res.url)
8888
})
8989
.catch((err) => {
90-
errCb(err);
91-
});
90+
errCb(err)
91+
})
9292

9393
// 提供的可用参数:
9494
// CUSTOM_ARG = {

src/components/CodemirrorEditor/PostSlider.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,10 @@ function delPost() {
9090
:key="post.title"
9191
href="#"
9292
:class="{
93-
'bg-primary text-primary-foreground': store.currentPostIndex === index,
93+
'bg-primary text-primary-foreground shadow-lg border-2 border-primary': store.currentPostIndex === index,
94+
'dark:bg-primary-dark dark:text-primary-foreground-dark dark:border-primary-dark': store.currentPostIndex === index,
9495
}"
95-
class="hover:bg-primary/90 hover:text-primary-foreground dark:bg-muted dark:hover:bg-muted h-8 w-full inline-flex items-center justify-start gap-2 whitespace-nowrap rounded px-2 text-sm transition-colors dark:text-white dark:hover:text-white"
96+
class="hover:bg-primary/90 hover:text-primary-foreground dark:bg-muted dark:hover:bg-muted dark:hover:border-primary-dark h-8 w-full inline-flex items-center justify-start gap-2 whitespace-nowrap rounded px-2 text-sm transition-colors dark:text-white dark:hover:text-white"
9697
@click="store.currentPostIndex = index"
9798
>
9899
<span class="line-clamp-1">{{ post.title }}</span>

0 commit comments

Comments
 (0)