Skip to content

Commit 48e9644

Browse files
authored
feat: fix el-link (doocs#520)
* feat: fix el-link * feat: no tabs permission need
1 parent 068c503 commit 48e9644

File tree

3 files changed

+17
-8
lines changed

3 files changed

+17
-8
lines changed

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
"release:cli": "node ./scripts/release.js",
1717
"ext:dev": "wxt",
1818
"ext:zip": "wxt zip",
19+
"firefox:dev": "wxt -b firefox",
20+
"firefox:zip": "wxt zip -b firefox",
1921
"lint": "eslint . --fix",
2022
"type-check": "vue-tsc --build --force",
2123
"postinstall": "simple-git-hooks && wxt prepare"

src/entrypoints/popup/App.vue

+14-6
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,18 @@ function onOpenOption() {
2727
<div>如果您希望使用微信公众号素材库作为图床功能,需要进行以下配置:</div>
2828
<div>
2929
1.开启公众号开发者模式
30-
<span><el-link
31-
type="primary"
30+
<span><a
3231
href="https://developers.weixin.qq.com/doc/offiaccount/Getting_Started/Getting_Started_Guide.html"
3332
target="_blank"
34-
>查看文档</el-link></span>
33+
>查看文档</a></span>
3534
</div>
3635
<div>
37-
2.配置IP白名单<span><el-link type="primary" href="https://mpmd.pages.dev/tutorial" target="_blank">使用教程</el-link></span>
36+
2.配置IP白名单<span><a href="https://mpmd.pages.dev/tutorial" target="_blank">使用教程</a></span>
3837
</div>
3938
<div>
40-
<el-link type="primary" href="#" @click="onOpenOption">
39+
<button class="button" @click="onOpenOption">
4140
开始使用
42-
</el-link>
41+
</button>
4342
</div>
4443
</section>
4544
</div>
@@ -61,4 +60,13 @@ function onOpenOption() {
6160
margin-left: auto;
6261
font-size: 14px;
6362
}
63+
.button {
64+
padding: 2px 6px;
65+
background: #07c060;
66+
color: #fff;
67+
border-radius: 4px;
68+
}
69+
section a {
70+
text-decoration: underline;
71+
}
6472
</style>

wxt.config.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ export default defineConfig({
77
extensionApi: `chrome`,
88
manifest: {
99
name: `公众号内容编辑器`,
10-
description: `一款高度简洁的微信 Markdown 编辑器:支持 Markdown 语法、色盘取色、多图上传、一键下载文档、自定义 CSS 样式、一键重置等特性`,
11-
version: `0.0.7`,
10+
description: `一款高度简洁的微信 Markdown 编辑器:支持 Markdown 语法、色盘取色、多图上传、一键下载文档、自定义 CSS 样式、一键重置、微信公众号图床等特性`,
1211
icons: {
1312
256: `/mpmd/icon-256.png`,
1413
},

0 commit comments

Comments
 (0)