Demo:页面增加显示当前核心库版本号

This commit is contained in:
wanglin2 2023-09-07 17:17:32 +08:00
parent 44410900aa
commit 4ac91003bb

View File

@ -80,6 +80,7 @@
<el-dropdown-item command="devDoc">开发文档</el-dropdown-item> <el-dropdown-item command="devDoc">开发文档</el-dropdown-item>
<el-dropdown-item command="site">官方网站</el-dropdown-item> <el-dropdown-item command="site">官方网站</el-dropdown-item>
<el-dropdown-item command="issue">意见反馈</el-dropdown-item> <el-dropdown-item command="issue">意见反馈</el-dropdown-item>
<el-dropdown-item disabled>当前v{{ version }}</el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
</div> </div>
@ -94,6 +95,7 @@ import { langList } from '@/config'
import i18n from '@/i18n' import i18n from '@/i18n'
import { storeLang, getLang } from '@/api' import { storeLang, getLang } from '@/api'
import { mapState, mapMutations } from 'vuex' import { mapState, mapMutations } from 'vuex'
import pkg from 'simple-mind-map/package.json'
/** /**
* @Author: 王林 * @Author: 王林
@ -114,6 +116,7 @@ export default {
}, },
data() { data() {
return { return {
version: pkg.version,
langList, langList,
lang: '', lang: '',
isReadonly: false, isReadonly: false,