增加环境信息
Former-commit-id: 4dae4bb78d76f7f938f96cb7e8d70ae3e0f3ff9a [formerly 4dae4bb78d76f7f938f96cb7e8d70ae3e0f3ff9a [formerly 4dae4bb78d76f7f938f96cb7e8d70ae3e0f3ff9a [formerly 4dae4bb78d76f7f938f96cb7e8d70ae3e0f3ff9a [formerly 5e20e47a6957a82b94b57af913a9a45a58fa5281 [formerly 7b63f06f2da85d10f4df205ef81a25e2fa8a7933]]]]] Former-commit-id: c9fce450c6afe4885d7105af2145fd597e2b7142 Former-commit-id: 837a71bd1de9152b2f22c7d2b310e6ab690cf563 Former-commit-id: e801081f67155ea604b9fbcfa8fb5f935d44189c [formerly d46bd2dfc6214d15783c2c9d1cf31e2ba8326ea7] Former-commit-id: 43308d8ac292147918a94fcc23c20f992cf3f4f6 Former-commit-id: 5c2e21a21d6dbc1628f0aedd2366f6a96184c428 Former-commit-id: 8ac1d58beb3d54e8674e900cf0c9b15110eb8ed5 Former-commit-id: 9fee2dfe7f53f06b403f7a6a9a9d6585517d9518 Former-commit-id: d1971ac9f64902e97f4173008c87882e5a026496
This commit is contained in:
@@ -1,19 +1,14 @@
|
||||
import util from '@/libs/util.js'
|
||||
import setting from '@/setting.js'
|
||||
|
||||
export default {
|
||||
namespaced: true,
|
||||
state: {
|
||||
// D2Admin 版本
|
||||
version: setting.releases.version
|
||||
},
|
||||
mutations: {
|
||||
/**
|
||||
* @description 显示版本信息
|
||||
* @param {Object} state vuex state
|
||||
*/
|
||||
versionShow (state) {
|
||||
util.log.capsule('D2Admin', `v${state.version}`)
|
||||
versionShow () {
|
||||
util.log.capsule('D2Admin', `v${process.env.VUE_APP_VERSION}`)
|
||||
console.log('Github https://github.com/d2-projects/d2-admin')
|
||||
console.log('Doc https://doc.d2admin.fairyever.com/zh/')
|
||||
console.log('请不要吝啬您的 star,谢谢 ~')
|
||||
|
||||
Reference in New Issue
Block a user