Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: fix el-link #520

Merged
merged 2 commits into from
Jan 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
"release:cli": "node ./scripts/release.js",
"ext:dev": "wxt",
"ext:zip": "wxt zip",
"firefox:dev": "wxt -b firefox",
"firefox:zip": "wxt zip -b firefox",
"lint": "eslint . --fix",
"type-check": "vue-tsc --build --force",
"postinstall": "simple-git-hooks && wxt prepare"
Expand Down
20 changes: 14 additions & 6 deletions src/entrypoints/popup/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,18 @@ function onOpenOption() {
<div>如果您希望使用微信公众号素材库作为图床功能,需要进行以下配置:</div>
<div>
1.开启公众号开发者模式
<span><el-link
type="primary"
<span><a
href="https://developers.weixin.qq.com/doc/offiaccount/Getting_Started/Getting_Started_Guide.html"
target="_blank"
>查看文档</el-link></span>
>查看文档</a></span>
</div>
<div>
2.配置IP白名单<span><el-link type="primary" href="https://mpmd.pages.dev/tutorial" target="_blank">使用教程</el-link></span>
2.配置IP白名单<span><a href="https://mpmd.pages.dev/tutorial" target="_blank">使用教程</a></span>
</div>
<div>
<el-link type="primary" href="#" @click="onOpenOption">
<button class="button" @click="onOpenOption">
开始使用
</el-link>
</button>
</div>
</section>
</div>
Expand All @@ -61,4 +60,13 @@ function onOpenOption() {
margin-left: auto;
font-size: 14px;
}
.button {
padding: 2px 6px;
background: #07c060;
color: #fff;
border-radius: 4px;
}
section a {
text-decoration: underline;
}
</style>
3 changes: 1 addition & 2 deletions wxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ export default defineConfig({
extensionApi: `chrome`,
manifest: {
name: `公众号内容编辑器`,
description: `一款高度简洁的微信 Markdown 编辑器:支持 Markdown 语法、色盘取色、多图上传、一键下载文档、自定义 CSS 样式、一键重置等特性`,
version: `0.0.7`,
description: `一款高度简洁的微信 Markdown 编辑器:支持 Markdown 语法、色盘取色、多图上传、一键下载文档、自定义 CSS 样式、一键重置、微信公众号图床等特性`,
icons: {
256: `/mpmd/icon-256.png`,
},
Expand Down
Loading