Skip to content

Commit

Permalink
fix: 修复了一些小细节
Browse files Browse the repository at this point in the history
  • Loading branch information
OBKoro1 committed Jun 24, 2021
1 parent 9767932 commit ec91b2e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANNGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# 更新日志

<!-- TODO: 中英文文档 -->
<!-- TODO: 打开谷歌插件扩展市场 -->

### [V1.0.0]

Expand Down
7 changes: 4 additions & 3 deletions src/options/App/Header.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<template>
<div class="header align-center">
<div class="header-left align-center">
<!-- TODO: 打开谷歌插件扩展市场 -->
<img src="../../../public/img/origin.jpeg"
class="header-img"
alt="">
<div class="header-plugin cursor-pointer">
<h2 @click="utils.jumpUrl(NET.GITHUBREPO)"> stop-mess-around(停止下意识摸鱼)</h2>
<span class="cursor-pointer"
@click="utils.jumpUrl(NET.CHANGELOG)">{{ getVersion() }}</span>
@click="utils.jumpUrl(NET.RELEASES)">{{ getVersion() }}</span>
</div>
<div class="author cursor-pointer"
@click="utils.jumpUrl(NET.MYSITE)">by OBKoro1</div>
Expand All @@ -20,7 +21,7 @@
{{'请我喝杯水吧😘'}}
</el-button>
<el-button type="text"
@click="utils.jumpUrl(NET.GITHUBREPO)"
@click="utils.jumpUrl(NET.DOCS)"
size="medium"
class="dropdown-color marginRL">
使用文档
Expand Down Expand Up @@ -66,7 +67,7 @@ export default {
methods: {
getVersion() {
const manifestData = chrome.runtime.getManifest()
return manifestData.version
return `v${manifestData.version}`
},
// 自动显示赞赏
sponsorshipShow() {
Expand Down
4 changes: 2 additions & 2 deletions src/popup/App/popup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<span>欢迎赞助</span>
</div>

<div @click="utils.jumpUrl(NET.GITHUBREPO)">
<div @click="utils.jumpUrl(NET.DOCS)">
<div>
<i class="el-icon-document"
style="color: #fff"></i>
Expand All @@ -43,7 +43,7 @@
</div>
<span>点个Star吧</span>
</div>
<div @click="utils.jumpUrl(NET.CHANGELOG)">
<div @click="utils.jumpUrl(NET.RELEASES)">
<div>
<i class="el-icon-tickets"
style="color: #fff"></i>
Expand Down
6 changes: 4 additions & 2 deletions src/utils/net.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@
* Author : OBKoro1
* Date : 2021-05-21 14:56:38
* LastEditors : OBKoro1
* LastEditTime : 2021-05-26 14:26:07
* LastEditTime : 2021-06-24 14:28:02
* FilePath : /stop-mess-around/src/utils/net.js
* Description : 全局常量
* Copyright (c) 2021 by OBKoro1, All Rights Reserved.
*/
const NET = {
// 项目地址
GITHUBREPO: 'https://github.com/OBKoro1/stop-mess-around',
// 使用文档
DOCS: 'https://github.com/OBKoro1/stop-mess-around/wiki/%E5%BF%AB%E9%80%9F%E4%B8%8A%E6%89%8B%E4%BB%A5%E5%8F%8A%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E',
// 更新日志
CHANGELOG: 'https://github.com/OBKoro1/stop-mess-around/blob/master/CHANNGELOG.md',
RELEASES: 'https://github.com/OBKoro1/stop-mess-around/releases',
// github 地址
GITHUBSITE: 'https://github.com/OBKoro1',
// 我的github地址
Expand Down

0 comments on commit ec91b2e

Please sign in to comment.