Skip to content

Commit 0543312

Browse files
fix(plugins/about): 修复「关于」页面中版本号显示有误的bug
fix #55
1 parent 7cacf76 commit 0543312

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/plugins/about/About.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,14 @@
8181
<script lang="ts">
8282
import { Vue, Component } from 'vue-property-decorator'
8383
import pack from '@/../package.json'
84-
import { isDev } from '@/helper/judger'
84+
import { getVersionName } from '@/helper/info'
8585
86-
const { version, description } = pack
86+
const { description } = pack
8787
8888
@Component
8989
export default class About extends Vue {
9090
get version(): string {
91-
return `${version} (${isDev() ? 'dev' : 'stable'})`
91+
return getVersionName()
9292
}
9393
9494
get featureList(): string[][] {

src/plugins/tooltip/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
// 提示信息插件
2-
import pack from '@/../package.json'
32
import { getPluginIcon } from '@/helper/getter'
43
import { SUAPlugin } from '@/core/types'
5-
import { isDev, isLoginPage } from '@/helper/judger'
4+
import { isLoginPage } from '@/helper/judger'
65
import { getVersionName } from '@/helper/info'
76

8-
const { version } = pack
9-
107
export const Tooltip: SUAPlugin = {
118
name: 'tooltip',
129
displayName: '提示信息',

0 commit comments

Comments
 (0)